Ejemplo n.º 1
0
        public async Task <IActionResult> ApiCheckOldPassword(string oldPassword)
        {
            var userId = User.Claims.FirstOrDefault(x => x.Type == "OryxUser")?.Value;
            var apiMsg = await ApiMessage.Wrap(async() =>
            {
                userAccountBusiness.CheckOldPassword(userId, oldPassword);
            });

            return(Json(apiMsg));
        }