Пример #1
0
        public IActionResult Edit(RequestDto model)
        {
            ViewBag.RequestTypes = service.GetRequestTypes();
            bool canEdit = service.CanEdit(model.Id);

            if (!canEdit)
            {
                ShowNotification(ErrorMessages.CanNotEditAnotherUserRequest, ToastrSeverity.Error);
                return(View("Add", model));
            }

            return(View("Add", model));
        }