public bool DeleteRecord(int iId) { bool objReturn = false; try { using (Product_DAL objDAL = new Product_DAL()) { objReturn = objDAL.DeleteRecord(iId); } } catch (Exception ex) { log.Error("DeleteRecord Error: ", ex); } return(objReturn); }