public ActionResult EditUser(int id) { SelectUsersRoleFk model = new SelectUsersRoleFk(); model.User = userService.GetUser(id); return(View(model)); }
public ActionResult EditUser(int id) { SelectUsersRoleFk model = new SelectUsersRoleFk(); Log.Debug($"Getting the user with the id:{id}"); try { model.User = userService.GetUser(id); Log.Info($"Getting the user with the id:{id} was succesfull"); } catch (Exception e) { Log.Error(e.ToString()); } return(View(model)); }