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

            return(MapService.MapOne <ITS_DocumentTypeInvoiceCategoriesLinks, DoctypesLinksDTO>(deletedLink));
        }
Example #4
0
        public DoctypesLinksDTO UpdateLink(DoctypesLinksDTO linked)
        {
            var link = docTypInvCatLinksServices.Update(MapService.MapOne <DoctypesLinksDTO, ITS_DocumentTypeInvoiceCategoriesLinks>(linked));

            return(MapService.MapOne <ITS_DocumentTypeInvoiceCategoriesLinks, DoctypesLinksDTO>(link));
        }