Пример #1
0
        public static async Task <Package> Execute(string id)
        {
            try
            {
                await PackageEntity.ValidatePackageId(id);

                return(await PackageDAO.GetPackage(id));
            }
            catch (Exception e)
            {
                throw e;
            }
        }
Пример #2
0
 /// <summary>
 /// Returns specified package?
 /// </summary>
 public string GetStudent(long PackageID) //
 {
     return(_packageDAO.GetPackage(PackageID));
 }