public async Task <JsonResult> CreateStatus(Status status) { if (ModelState.IsValid) { try { var user = await _userManager.GetUserAsync(User); var userRoles = await _userManager.GetRolesAsync(user); await _statusService.AddDefault(userRoles, status); } catch (DbUpdateConcurrencyException) { throw; } return(Json(null)); } return(Json(null)); }