Example #1
0
        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);
        }
Example #2
0
        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);
        }