コード例 #1
0
        public JsonResult Edit(CategorizedUserViewModel user)
        {
            if (ModelState.IsValid)
            {
                _evaluateService.SetUserSkills(Mapper.Map(user));
            }

            try
            {
                var u = _evaluateService.GetCategorizedUser(user.Id);
                return(Json(Mapper.Map(u)));
            }
            catch (ValidationException)
            {
                return(null);
            }
        }