예제 #1
0
        public override System.Web.Mvc.ActionResult Create(Stagio.Web.ViewModels.InternshipApplication.Create applicationViewModel)
        {
            var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.Create);

            ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "applicationViewModel", applicationViewModel);
            CreateOverride(callInfo, applicationViewModel);
            return(callInfo);
        }
예제 #2
0
        public string SaveStudentFiles(Student student, Stagio.Web.ViewModels.InternshipApplication.Create internshipApplication)
        {
            Initialize();
            var pathEnding    = "\\Students\\" + student.FirstName + student.LastName + student.Id + "\\Offer" + internshipApplication.InternshipOfferId;
            var extraFilePath = this.PathBeginning + pathEnding;

            SaveFile(internshipApplication.Resume, extraFilePath);
            SaveFile(internshipApplication.CoverLetter, extraFilePath);

            return(pathEnding);
        }
예제 #3
0
 partial void CreateOverride(T4MVC_System_Web_Mvc_ActionResult callInfo, Stagio.Web.ViewModels.InternshipApplication.Create applicationViewModel);