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)); }