Ejemplo n.º 1
0
 public JsonResult UpdateTithe(TithesViewModel tithe)
 {
     try
     {
         return(Json(Repo.UpdateTithe(tithe), JsonRequestBehavior.AllowGet));
     }
     catch (Exception ex)
     {
         Log.Error(ex.Message);
         throw;
     }
 }
Ejemplo n.º 2
0
        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;
            }
        }