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

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

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