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