Пример #1
0
        public async Task <IActionResult> AddPhone(PhoneDTO phone)
        {
            if (ModelState.IsValid)
            {
                var result = await _userServices.AddPhone(phone);

                return(Ok(result));
            }

            return(BadRequest("Invalid details"));
        }