Пример #1
0
        public void AddUserJob()
        {
            string jobTitle = txtNewUerJobTitle.Value;
            string jobDesc  = txtNewUserJobDesc.Value;
            string jobLoc   = txtNewUserJobLoc.Value;
            string jobExp   = txtNewUserJobExp.Value;
            string company  = txtNewUserJobCompany.Value;
            Jobs   job      = new Jobs("N", jobTitle.Trim(), jobDesc.Trim(), jobExp.Trim(), company.Trim(), jobLoc);

            job.Email = ApplicationSession.Current.user.Email;
            string adminMessage = SendEmail.BuildPostedJobAdminMail(ApplicationSession.Current.user, job);

            if (JobBO.AddJob(job, string.Empty, adminMessage, Constants.MailSubject))
            {
                AddUserJobSuccess.Visible = true;
                //Mailing Windows Service
                //SendEmail.ReceiveJobEmail(ApplicationSession.Current.user, job);
            }
            ApplicationSession.Current.Jobs.Clear();
            //FillGrid();

            //Email Needs to be sent
            //ResetControls();
        }