public IActionResult Edit(EditUserModel user) { if (ModelState.IsValid) { Request.Form.TryGetValue("Interests", out var raspunsuri); interestsUsersService.ChangeInterests(user.Id, raspunsuri.Select(e => int.Parse(e)).ToList()); var updateUser = mapper.Map <Users>(user); userService.Update(updateUser); return(RedirectToAction("Index")); } return(View(user)); }