Пример #1
0
        public static Package GetPackageByID(int packageId, string executedBy)
        {
            Package package = PackageDAO.GetById(packageId, executedBy);

            package.Item = Item.ItemDAO.GetByID(package.ItemID, "nirshan");
            return(package);
        }
Пример #2
0
 public static bool AddPackage(Package package, string executedBy)
 {
     return(PackageDAO.Insert(package, executedBy));
 }
Пример #3
0
 public static bool UpdatePackage(Package package, string executedBy)
 {
     return(PackageDAO.Update(package, executedBy));
 }
Пример #4
0
 public static bool DeletePackage(int packageID, string executedBy)
 {
     return(PackageDAO.Delete(packageID, executedBy));
 }
Пример #5
0
 public static List <Package> GetAllPackage(Package srchPackage, string executedBy)
 {
     return(PackageDAO.GetAll(srchPackage, executedBy));
 }