Пример #1
0
        public ActionResult AddResponsePost(AddResponseVM model)
        {
            var message = model.Text + H.br +
                          model.CourseTC + H.br +
                          model.EmployeeTC + H.br;

            MailService.SendResponse(model.EmployeeTC, message);
            return(Content("ok"));
        }
Пример #2
0
        public ActionResult AddResponse(string employeeTC)
        {
            var model = new AddResponseVM {
                EmployeeTC = employeeTC,
                Courses    = CourseService.GetAllActiveCourseNames().Select(x =>
                                                                            new CourseLink {
                    WebName = x.Value, CourseTC = x.Key
                }).ToList()
            };

            return(BaseView(Views.Employee.AddResponseForm, model));
        }