public bool Delete(TipoImpuestosServicios entity) { try { var entityDAL = new InmDAL.TiposImpuestosServicios(); entityDAL.TiposImpuestosServiciosID = entity.Codigo; var response = genericDal.Delete(entityDAL); return(response); } catch (Exception ex) { throw new Exception(ex.Message); } }
public int Add(TipoImpuestosServicios entity) { try { var entityDAL = new InmDAL.TiposImpuestosServicios(); entityDAL.TiposImpuestosServiciosID = entity.Codigo; entityDAL.Descripcion = entity.Descripcion; entityDAL.Pagar = entity.Pagar; var response = genericDal.Add(entityDAL); return(response); } catch (Exception ex) { throw new Exception(ex.Message); } }