public bool Delete(Int64 pid) { try { Cls_Rawmaterial_db objCls_Rawmaterial_b = new Cls_Rawmaterial_db(); if (objCls_Rawmaterial_b.Delete(pid)) { return(true); } return(false); } catch (Exception ex) { throw new Exception(ex.Message); } }
public rawMaterialMaster SelectById(Int64 pid) { rawMaterialMaster objrawMaterialMaster = new rawMaterialMaster(); try { Cls_Rawmaterial_db objCls_Rawmaterial_b = new Cls_Rawmaterial_db(); objrawMaterialMaster = objCls_Rawmaterial_b.SelectById(pid); return(objrawMaterialMaster); } catch (Exception ex) { ErrHandler.writeError(ex.Message, ex.StackTrace); return(objrawMaterialMaster); } }
public Int64 Update(rawMaterialMaster objproduct) { Int64 result = 0; try { Cls_Rawmaterial_db objCls_Rawmaterial_b = new Cls_Rawmaterial_db(); result = Convert.ToInt64(objCls_Rawmaterial_b.Update(objproduct)); return(result); } catch (Exception ex) { ErrHandler.writeError(ex.Message, ex.StackTrace); return(result); } }
public DataTable SelectAll() { DataTable dt = new DataTable(); try { Cls_Rawmaterial_db objCls_Rawmaterial_b = new Cls_Rawmaterial_db(); dt = objCls_Rawmaterial_b.SelectAll(); return(dt); } catch (Exception ex) { ErrHandler.writeError(ex.Message, ex.StackTrace); return(dt); } }