public IHttpActionResult GetBanner(ViewModel.tblBanner obj) { try { JArray ret = BisBanner.GetBannerJsonData(obj); return(Ok(ret)); } catch { return(NotFound()); } }
public bool DeleteBanner(ViewModel.tblBanner banner) { return(sqlHelper.RunProcedure("sp_tblBanner_DeleteRow", banner) > 0); }
public bool UpdateBannerPicUrlForMobile(ViewModel.tblBanner banner) { return(sqlHelper.RunProcedure("sp_tblBanner_UpdatePicUrlForMobile", banner) > 0); }
public bool UpdateBanner(ViewModel.tblBanner banner) { return(sqlHelper.RunProcedure("sp_tblBanner_Update", banner) > 0); }
public bool AddBanner(ViewModel.tblBanner banner) { return(sqlHelper.RunProcedure("sp_tblBanner_Insert", banner) > 0); }
public JArray GetBannerJsonData(ViewModel.tblBanner banner) { return(sqlHelper.ReturnJsonData("sp_tblBanner_GetJsonData", banner)); }