Пример #1
0
        public ActionResult EditUser(int id)
        {
            SelectUsersRoleFk model = new SelectUsersRoleFk();

            model.User = userService.GetUser(id);

            return(View(model));
        }
Пример #2
0
        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));
        }