public bool DeleteByID(Guid slabid) { bool blnResult = false; try { int outval = objDAL.ExecuteQuery("delete from SlabCommision where slabid='" + slabid + "'"); } catch (Exception) { throw; } return(blnResult); }
public int BulkInsert(List <ENT.DMT_BeneficiaryRegister> Entity) { int objResult = 0; try { DAL.CRUDOperation tt = new DAL.CRUDOperation(); String query = string.Empty; foreach (ENT.DMT_BeneficiaryRegister p in Entity) { query = query + COM.CommonMSSQL.PrepairInsertQueryByEntity(p, p.TableName); } objResult = tt.ExecuteQuery(query); } catch (Exception ex) { throw; } return(objResult); }