Пример #1
0
        public virtual ActionResult Edit(long id)
        {
            var userGroup = userGroupService.Find(id);

            if (userGroup == null)
            {
                throw new HttpException((int)HttpStatusCode.NotFound, Translate("Messages.CouldNotFoundEntity"));
            }

            return(View(new UserGroupViewModel().MapFrom(userGroup)));
        }