public IHttpActionResult Put([FromBody] ITS_WF_Process invProc)
 {
     try
     {
         return(Utils.Response(new WorkflowProcessDTO(Service.Update(invProc)), HttpStatusCode.NotFound, string.Format("Could not update work flow process {0}.", invProc.SubmissionID), Request.RequestUri.AbsoluteUri));
     }
     catch (Exception e)
     {
         return(ExceptionMSG(e));
     }
 }
 // POST api/<controller>
 public IHttpActionResult Post([FromBody] ITS_WF_Process process)
 {
     try
     {
         return(Utils.Response(new WorkflowProcessDTO(Service.Add(process)), HttpStatusCode.InternalServerError, string.Format("Could not create process {0}.", process.SubmissionID), Request.RequestUri.AbsoluteUri));
     }
     catch (Exception e)
     {
         return(ExceptionMSG(e));
     }
 }
 public WorkflowProcessDTO(ITS_WF_Process workflowprocess)
 {
     ID                = workflowprocess.ID;
     SubmissionID      = workflowprocess.SubmissionID;
     SupplierInvoiceID = workflowprocess.SupplierInvoiceID;
     RoleID            = workflowprocess.RoleID;
     UserID            = workflowprocess.UserID;
     WF_StatusID       = workflowprocess.WF_StatusID;
     DateAssigned      = workflowprocess.DateAssigned;
     DateCompleted     = workflowprocess.DateCompleted;
     RouteID           = workflowprocess.RouteID;
     Status            = workflowprocess.Status;
 }