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); } }
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); } }