Пример #1
0
        public override System.Web.Mvc.ActionResult DeleteDraft(Stagio.Web.ViewModels.InternshipOffer.Create internshipOfferViewModel)
        {
            var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.DeleteDraft);

            ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "internshipOfferViewModel", internshipOfferViewModel);
            DeleteDraftOverride(callInfo, internshipOfferViewModel);
            return(callInfo);
        }
Пример #2
0
        public string SaveOfferExtraFile(Employee employee, Stagio.Web.ViewModels.InternshipOffer.Create internshipOffer)
        {
            Initialize();
            var pathEnding    = "\\Employees\\" + employee.FirstName + employee.LastName + employee.Id + "\\Offer" + internshipOffer.Title;
            var extraFilePath = this.PathBeginning + pathEnding;

            SaveFile(internshipOffer.ExtraFile, extraFilePath);

            return(pathEnding);
        }
Пример #3
0
 partial void DeleteDraftOverride(T4MVC_System_Web_Mvc_ActionResult callInfo, Stagio.Web.ViewModels.InternshipOffer.Create internshipOfferViewModel);