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")); }
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)); }