public ActionResult CheckPeopleAward(int selectedAwardID, int peopleId) { try { if (repository.CheckPeopleAward(selectedAwardID, peopleId)) { return(Json(false, JsonRequestBehavior.AllowGet)); } } catch { return(HttpNotFound("Ошибка на сервере")); } return(Json(true, JsonRequestBehavior.AllowGet)); }
public ActionResult CheckPeopleAward(int selectedAwardID, int peopleId) { try { if (repository.CheckPeopleAward(selectedAwardID, peopleId)) { return(Json(false, JsonRequestBehavior.AllowGet)); } } catch (Exception e) { Logger.LogException(e); return(View("Error", ErrorHelper.GetErrorModel(e.Message, e.StackTrace, DEFAULT_BACK_ERROR_URL))); } return(Json(true, JsonRequestBehavior.AllowGet)); }