Пример #1
0
        public async Task <IActionResult> OnPostChangeColor(string color)
        {
            var userProfile = await cookieService.GetCurrentUser();

            if (await profileService.ChangeColor(userProfile, color))
            {
                return(new JsonResult(new { Message = JsonResponse.Success.ToString() }));
            }
            return(new JsonResult(new { Message = JsonResponse.Failed.ToString() }));
        }