public ActionResult ShowBrothersStandings() { broInfoObj = new Models.BrothersInfo_BLL(); var brothersStandings = broInfoObj.requestAllBrothersHours(); return(Json(brothersStandings, JsonRequestBehavior.AllowGet)); }
public ActionResult AddNewBrother(Brother bro) { bI_BLL = new BrothersInfo_BLL(); if (ModelState.IsValid) { if (bI_BLL.requestBrotherAddition(bro) == true) { return(View("BrotherAdditionSuccess")); } else { //The brother must already exist. return(View("Nope")); } } //Model state is not valid, so return the BrotherAdditionFaield else { return(View("BrotherAdditionFailed")); } }