public static Waste GetById(long wasteId) { Waste waste = BusinessDomain.DataAccessProvider.GetOperationById <Waste> (OperationType.Waste, wasteId); if (waste != null) { waste.LoadDetails(); waste.IsDirty = false; } return(waste); }
public static Waste GetPending(long pId, long lId) { Waste waste = BusinessDomain.DataAccessProvider.GetPendingOperation <Waste> (OperationType.Waste, pId, lId); if (waste != null) { waste.LoadDetails(); waste.IsDirty = false; } return(waste); }