/// <summary> /// SaveWorkflowComment /// </summary> /// <param name="workflowComment"></param> public void SaveWorkflowComment(WorkflowCommentModel workflowComment) { WorkflowCommentDC workflowCommentDC = Mapper.Map <WorkflowCommentModel, WorkflowCommentDC>(workflowComment); ServiceResponse <int> saveWorkflowCommentServiceResponse = _workflowProxy.Execute(opt => saveWorkflowCommentServiceResponse = opt.SaveWorkflowComment(workflowCommentDC)); if (saveWorkflowCommentServiceResponse.Status != ResponseStatus.Success) { HandleError(saveWorkflowCommentServiceResponse.Status, saveWorkflowCommentServiceResponse.ResponseMessage); } else { workflowComment.WorkflowCommentId = saveWorkflowCommentServiceResponse.Result; } }
public HttpResponseMessage SaveWorkflowComment(int siteId, WorkflowCommentModel workflowComment) { WorkflowClientProcessor.UserContext.SiteId = siteId; WorkflowClientProcessor.SaveWorkflowComment(workflowComment); return(Request.CreateResponse(HttpStatusCode.OK, new { Message = CoreMessages.SavedSuccessfully, Id = workflowComment.WorkflowCommentId })); }
public HttpResponseMessage SaveWorkflowComment(int siteId,WorkflowCommentModel workflowComment) { WorkflowClientProcessor.UserContext.SiteId = siteId; WorkflowClientProcessor.SaveWorkflowComment(workflowComment); return Request.CreateResponse(HttpStatusCode.OK, new { Message = CoreMessages.SavedSuccessfully, Id = workflowComment.WorkflowCommentId }); }