func (c *WorkItemLinkController) Create(ctx *app.CreateWorkItemLinkContext) error {
	currentUserIdentityID, err := login.ContextIdentity(ctx)
	if err != nil {
		return jsonapi.JSONErrorResponse(ctx, errors.NewUnauthorizedError(err.Error()))
	}
	linkCtx := newWorkItemLinkContext(ctx.Context, c.db, c.db, ctx.RequestData, ctx.ResponseData, app.WorkItemLinkHref, currentUserIdentityID)
	return createWorkItemLink(linkCtx, ctx, ctx.Payload)
}
// Create runs the create action.
Create runs the create action.
// Create runs the create action .
func (c *WorkItemLinkController) Create(ctx *app.CreateWorkItemLinkContext) error {
	currentUserIdentityID, err := login.ContextIdentity(ctx)
	if err != nil {
		return jsonapi.JSONErrorResponse(ctx, errors.NewUnauthorizedError(err.Error()))
	}
	linkCtx := newWorkItemLinkContext(ctx.Context, c.db, c.db, ctx.RequestData, ctx.ResponseData, app.WorkItemLinkHref, currentUserIdentityID)
	return createWorkItemLink(linkCtx, ctx, ctx.Payload)
}
func ( c * WorkItemLinkController ) Create ( ctx * app . CreateWorkItemLinkContext ) error { currentUserIdentityID , err := login . ContextIdentity ( ctx ) if err != nil { return jsonapi . JSONErrorResponse ( ctx , errors . NewUnauthorizedError ( err . Error ( ) ) ) } linkCtx := newWorkItemLinkContext ( ctx . Context , c . db , c . db , ctx . RequestData , ctx . ResponseData , app . WorkItemLinkHref , currentUserIdentityID ) return createWorkItemLink ( linkCtx , ctx , ctx . Payload ) }
Create runs the create action.
Create runs the create action .