Ejemplo n.º 1
0
 public Dto.NotificaDto ReadNotifica(object id)
 {
     try
     {
         var wcf = new EntitiesModelService();
         var dtoKey = UtilityPOCO.GetDtoKey((int)id);
         var notifica = wcf.ReadNotifica(dtoKey);
         return notifica;
     }
     catch (Exception ex)
     {
         UtilityError.Write(ex);
     }
     return null;
 }
Ejemplo n.º 2
0
 public Dto.NotificaDto CreateNotifica(Dto.NotificaDto notifica)
 {
     try
     {
         var wcf = new EntitiesModelService();
         var dtoKey = wcf.CreateNotifica(notifica);
         var newNotifica = wcf.ReadNotifica(dtoKey);
         return newNotifica;
     }
     catch (Exception ex)
     {
         UtilityError.Write(ex);
     }
     return null;
 }