Beispiel #1
0
        public IHttpActionResult EditAccount([FromBody] AccountDTO account)
        {
            if (string.IsNullOrEmpty(account.Name) || string.IsNullOrEmpty(account.PhoneNumber) ||
                string.IsNullOrEmpty(account.Email) || string.IsNullOrEmpty(account.Login))
            {
                return(BadRequest());
            }

            if (_bll.EditAccount(account))
            {
                return(Ok());
            }
            return(InternalServerError());
        }