private void DeleteData(int PhotoCode) { try { tbl_PhotoGalleryMasterProp Objtbl_PhotoGalleryMasterProp = new tbl_PhotoGalleryMasterProp(); Objtbl_PhotoGalleryMasterProp.PhotoCode = PhotoCode; tbl_PhotoGalleryMasterBAL Objtbl_PhotoGalleryMasterBAL = new tbl_PhotoGalleryMasterBAL(); Objtbl_PhotoGalleryMasterBAL.Delete_Data(Objtbl_PhotoGalleryMasterProp); FillData(); } catch (Exception ex) { throw ex; } }