public decimal Category_Delete(decimal Category_Id) { try { Categories_DA _objDA = new Categories_DA(); return(_objDA.Category_Delete(Category_Id)); } catch (Exception ex) { NaviCommon.Common.log.Error(ex.ToString()); return(-1); } }
public bool Category_Update(decimal Category_Id, string Category_Name, string Unit) { try { Categories_DA _objDA = new Categories_DA(); return(_objDA.Category_Update(Category_Id, Category_Name, Unit)); } catch (Exception ex) { Common.log.Error(ex.ToString()); return(false); } }
public byte[] Category_Search(string p_name) { try { Categories_DA _objDA = new Categories_DA(); DataSet _ds = _objDA.Category_Search(p_name); return(CompressionHelper.CompressDataSet(_ds)); } catch (Exception ex) { NaviCommon.Common.log.Error(ex.ToString()); return(new byte[0]); } }
public byte[] Category_GetById(decimal Category_Id) { try { Categories_DA _objDA = new Categories_DA(); DataSet _ds = _objDA.Category_GetById(Category_Id); return(CompressionHelper.CompressDataSet(_ds)); } catch (Exception ex) { NaviCommon.Common.log.Error(ex.ToString()); return(new byte[0]); } }