示例#1
0
        public DoctypesLinksDTO UpdateLink(DoctypesLinksDTO linked)
        {
            var link = docTypInvCatLinksServices.Update(MapService.MapOne <DoctypesLinksDTO, ITS_DocumentTypeInvoiceCategoriesLinks>(linked));

            return(MapService.MapOne <ITS_DocumentTypeInvoiceCategoriesLinks, DoctypesLinksDTO>(link));
        }
示例#2
0
 public IHttpActionResult PutLinkedDoctype([FromBody] DoctypesLinksDTO docTypeLink)
 {
     return(DtUtil.Response(Service.UpdateLink(docTypeLink), HttpStatusCode.NotFound, string.Format("Could not update link for document type {0}.", docTypeLink.DocumentType), Request.RequestUri.AbsoluteUri));
 }