internal ImageFlowInfo GetImagesByID(int BannerID) { try { string Sp = "[dbo].[usp_ImageFlow_GetByBannerID]"; List <KeyValuePair <string, object> > param = new List <KeyValuePair <string, object> >(); param.Add(new KeyValuePair <string, object>("@BannerID", BannerID)); SQLHandler objSql = new SQLHandler(); ImageFlowInfo objInfo = objSql.ExecuteAsObject <ImageFlowInfo>(Sp, param); return(objInfo); } catch (Exception ex) { throw ex; } }
internal void AddUpdateImages(ImageFlowInfo objInfo) { try { string Sp = "[dbo].[usp_ImageFlow_AddUpdate]"; List <KeyValuePair <string, object> > param = new List <KeyValuePair <string, object> >(); param.Add(new KeyValuePair <string, object>("@BannerID", objInfo.BannerID)); param.Add(new KeyValuePair <string, object>("@ImageName", objInfo.ImageName)); param.Add(new KeyValuePair <string, object>("@Title", objInfo.Title)); param.Add(new KeyValuePair <string, object>("@Description", objInfo.Description)); param.Add(new KeyValuePair <string, object>("@IsActive", objInfo.IsActive)); param.Add(new KeyValuePair <string, object>("@CultureCode", objInfo.CultureCode)); param.Add(new KeyValuePair <string, object>("@UserModuleID", objInfo.UserModuleID)); param.Add(new KeyValuePair <string, object>("@PortalID", objInfo.PortalID)); param.Add(new KeyValuePair <string, object>("@AddedBy", objInfo.AddedBy)); SQLHandler objSql = new SQLHandler(); objSql.ExecuteNonQuery(Sp, param); } catch (Exception ex) { throw ex; } }
public void AddUpdateImages(ImageFlowInfo objInfo) { ImageFlowDataProvider ObjProv = new ImageFlowDataProvider(); ObjProv.AddUpdateImages(objInfo); }