Пример #1
0
        public static async Task ValidatePackageId(string id)
        {
            try
            {
                var idExist = await PackageDAO.CheckIdPackageIdExist(id);

                if (!idExist)
                {
                    throw new ValidationException("Id", "Esse pacote nao existe.");
                }
            }
            catch (Exception e)
            {
                throw e;
            }
        }