Пример #1
0
        public ActionResult Create(PostAccount collection)
        {
            AccountProvider accountProvider = new AccountProvider();

            try
            {
                var result = accountProvider.CreateAccount(collection);
                if (result.status == true)
                {
                    return(Ok());
                }
                else
                {
                    return(BadRequest(result));
                }
            }
            catch
            {
                return(BadRequest());
            }
        }