public bool UploadGallery(ClientBusiness cbObject, string[] fileList) { StringBuilder sb = new StringBuilder("INSERT INTO [dbo].[ClientBusinessGallery] ([ClientBusinessDetailId],[ImageName],[UploadedDate],[IsActive])"); sb.Append("VALUES (@ClientBusinessDetailId,@ImageName,@UploadedDate,@IsActive)"); if (clientDA.AddGalleryDetails(cbObject, fileList, sb.ToString())) { return(true); } else { return(false); } }