public ViewAction GetViewAction(Int32 PaymentmemoId, Int32 UserID) { try { BaseRackRateDAL Dal = new BaseRackRateDAL(); return(Dal.GetViewAction(PaymentmemoId, UserID, 1)); } catch (Exception) { throw; } }
public WorkFlowHierarchy[] GetWorkFlowHierarchy(Int32 MemoTypeID) { try { BaseRackRateDAL Dal = new BaseRackRateDAL(); return(Dal.GetWorkFlowHierarchy(1).ToArray()); } catch (Exception) { throw; } }
public bool SendDeletePaymentMail(string PaymentNo, string Distributor, string UserName, string ToUser, string Status) { bool ObjResult = false; try { Exception error = null; BaseRackRateDAL dal = new BaseRackRateDAL(); string subject = ""; string Body = ""; List <NotificationMailContent> MailContent = new List <NotificationMailContent>(); MailContent = dal.GetNotificationMailContent(Status, out error); if (MailContent.Count > 0) { subject = MailContent.First().Subject; Body = MailContent.First().Body; Body = Body.Replace("###PAYMENTNO###", PaymentNo); Body = Body.Replace("###DISTRIBUTOR###", Distributor); Body = Body.Replace("###USER###", UserName); // NEED TO GET REVERT AFTER IMPLEMENT IN LIVE ToUser = "******"; // NEED TO GET REVERT AFTER IMPLEMENT IN LIVE #region SendEmail Utility util = new Utility(); Email em = new Email(); em.Emailto = ToUser; em.EmailCC = ""; em.EmailBCC = ""; em.Subject = subject; em.Body = Body; em.attach = ""; em.Emailfrom = "*****@*****.**"; util.SendEmail(em); #endregion } ObjResult = true; } catch (Exception) { ObjResult = false; throw; } return(ObjResult); }