Ejemplo n.º 1
0
 public NotesDTO(ITS_Notes notes)
 {
     ID = notes.ID;
     SupplierInvoiceID = notes.SupplierInvoiceID;
     Notes             = notes.Notes;
     DateCreated       = notes.DateCreated;
     UserCreated       = notes.UserCreated;
     UserUpdated       = notes.UserUpdated;
     DateUpdated       = notes.DateUpdated;
 }
 public IHttpActionResult Post([FromBody] ITS_Notes notes)
 {
     try
     {
         return(Util.Response(new NotesDTO(service.Add(notes)), HttpStatusCode.InternalServerError, string.Format("Could not create invoice notes {0}.", notes.SupplierInvoiceID), Request.RequestUri.AbsoluteUri));
     }
     catch (Exception e)
     {
         return(ExceptionMSG(e));
     }
 }