Пример #1
0
        public IActionResult ChangePhoneNumber([FromForm] ChangePhoneNumberModel model)
        {
            var userEmail = User.Claims.FirstOrDefault(c => c.Type == ClaimTypes.Email).Value;

            _korisnikService.ChangePhoneNumber(userEmail, model);
            return(Ok("Broj telefon uspješno promijenjen!"));
        }