public DoctypesLinksDTO UpdateLink(DoctypesLinksDTO linked) { var link = docTypInvCatLinksServices.Update(MapService.MapOne <DoctypesLinksDTO, ITS_DocumentTypeInvoiceCategoriesLinks>(linked)); return(MapService.MapOne <ITS_DocumentTypeInvoiceCategoriesLinks, DoctypesLinksDTO>(link)); }
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)); }