public ActionResult TblGalleryUpdate(long id) { try { var res = new TblGalleryDao().FindById(id); return(View(res)); } catch (Exception ex) { logger.Info(ControllerName + "::TblGalleryUpdate::" + ex.Message); return(RedirectToAction("Index", "Error")); } }
public JsonResult TblGalleryList() { try { var list = new TblGalleryDao().FindByAll(); return(Json(list, JsonRequestBehavior.AllowGet)); } catch (Exception ex) { logger.Info(ControllerName + "::TblGalleryDelete::" + ex.Message); return(Json(JsonRequestBehavior.AllowGet)); } }