public JsonResult UpdateTithe(TithesViewModel tithe) { try { return(Json(Repo.UpdateTithe(tithe), JsonRequestBehavior.AllowGet)); } catch (Exception ex) { Log.Error(ex.Message); throw; } }
public JsonResult AddTitheRecord(TithesViewModel titheRecord) { try { // TODO: Take care of error handling so the user is aware when there's an error titheRecord.DonationType = 1; // Tithes return(Json(Repo.AddTithe(titheRecord), JsonRequestBehavior.AllowGet)); } catch (Exception ex) { Log.Error(ex.Message); throw ex; } }