public void AddLinks(List <DoctypesLinksDTO> linked) { foreach (DoctypesLinksDTO link in linked) { var newLink = MapService.MapOne <DoctypesLinksDTO, ITS_DocumentTypeInvoiceCategoriesLinks>(link); docTypInvCatLinksServices.Add(newLink); } }
public DoctypesLinksDTO GetLink(int id) { return(MapService.MapOne <ITS_DocumentTypeInvoiceCategoriesLinks, DoctypesLinksDTO>(docTypInvCatLinksServices.Get(id))); }
public DoctypesLinksDTO DeleteLink(int id) { var deletedLink = docTypInvCatLinksServices.Delete(id); return(MapService.MapOne <ITS_DocumentTypeInvoiceCategoriesLinks, DoctypesLinksDTO>(deletedLink)); }
public DoctypesLinksDTO UpdateLink(DoctypesLinksDTO linked) { var link = docTypInvCatLinksServices.Update(MapService.MapOne <DoctypesLinksDTO, ITS_DocumentTypeInvoiceCategoriesLinks>(linked)); return(MapService.MapOne <ITS_DocumentTypeInvoiceCategoriesLinks, DoctypesLinksDTO>(link)); }