public ActionResult Delivery(int idDonation) { return(Json(DonationBL.updateDonationState(idDonation, 1), JsonRequestBehavior.AllowGet)); }
public ActionResult AssignDonation(int idDonation, int idPerson) { return(Json(DonationBL.AssignDonation(idDonation, idPerson))); }
public ActionResult Confirm(int idDonation) { return(Json(DonationBL.updateDonationState(idDonation, 3), JsonRequestBehavior.AllowGet)); }
public ActionResult Delivery() { ViewBag.listDonations = DonationBL.getDonationsForDelivery(); return(View()); }
public ActionResult List() { ViewBag.listDonations = DonationBL.getAllDonations(); return(View()); }
public ActionResult Register(tbl_donation donation) { return(Json(DonationBL.create(donation))); }