public ActionResult SendJoinRequest(int partyID, string message) { var party = partyRepository.GetById(partyID); var citizen = SessionHelper.LoggedCitizen; MethodResult result; if ((result = partyService.CanSendJoinRequest(citizen, party, message)).IsError) { return(RedirectBackWithError(result)); } partyService.SendJoinRequest(citizen, party, message); return(RedirectBackWithSuccess("You successfully sent join request.")); }