public Guid Delete(Guid cotizacionId) { IEnumerable <Presupuesto> presupuestos = PresupuestosDAL.GetChildren(cotizacionId); foreach (var presupuesto in presupuestos) { PresupuestoItemsDAL.DeleteChildren(presupuesto.Id); } PresupuestosDAL.DeleteChildren(cotizacionId); CotizacionesDAL.Delete(cotizacionId); return(cotizacionId); }
public Cotizacion GetOne(Guid id) { return(CotizacionesDAL.GetOne(id)); }
public IEnumerable <Cotizacion> SearchByTerm(string term) { return(CotizacionesDAL.SearchByTerm(term)); }
public Guid Save(Cotizacion model) { Guid savedId = CotizacionesDAL.Save(model); return(savedId); }
public IEnumerable <Cotizacion> GetAll(Guid id, out int totalPages, int pageNumber, int pageSize) { return(CotizacionesDAL.GetAll(id, out totalPages, pageNumber, pageSize)); }