/// <summary> /// Method to Get PayMode Entity /// </summary> /// <param name="argEn">PayMode Entity is an Input.SAPM_Code as Input Property.</param> /// <returns>Returns PayMode Entity</returns> public PayModeEn GetItem(PayModeEn argEn) { try { PayModeDAL loDs = new PayModeDAL(); return(loDs.GetItem(argEn)); } catch (Exception ex) { throw ex; } }
/// <summary> /// Method to Get List of PayMode /// </summary> /// <param name="argEn">PayMode Entity is an Input.SAPM_Code,SAPM_Des and SAPM_Status are Input Properties.</param> /// <returns>Returns List of PayMode</returns> public List <PayModeEn> GetPaytypeAll(PayModeEn argEn) { try { PayModeDAL loDs = new PayModeDAL(); return(loDs.GetPaytypeAll(argEn)); } catch (Exception ex) { throw ex; } }
/// <summary> /// Method to Update PayMode /// </summary> /// <param name="argEn">PayMode Entity is an Input.</param> /// <returns>Returns Boolean</returns> public bool Update(PayModeEn argEn) { bool flag; using (TransactionScope ts = new TransactionScope()) { try { PayModeDAL loDs = new PayModeDAL(); flag = loDs.Update(argEn); ts.Complete(); } catch (Exception ex) { throw ex; } } return(flag); }