Esempio n. 1
0
 public bool Update(GarantePropietario entity)
 {
     try
     {
         var data     = new InmDAL.GarantePropietario();
         var response = genericDal.Update(data);
         if (response != null)
         {
             return(true);
         }
         return(false);
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
Esempio n. 2
0
 public int Add(GarantePropietario entity)
 {
     try
     {
         var data = new InmDAL.GarantePropietario
         {
             DomiciliosId = entity.DomiciliosId,
             PersonasId   = entity.PersonasId,
             Matricula    = entity.Matricula
         };
         var response = genericDal.Add(data);
         return(response);
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }