public ActionResult Index(ProjectionModel ProjectionEntryModel) { ProjectionModel model = new ProjectionModel(); if (Session["Username"] == null) { return(RedirectToAction("Login", "Login")); } else { if (ProjectionEntryModel != null) { var ProjectionEntryModelRecord = new ProjectionEntryModel() { ProjectID = ProjectionEntryModel.ProjectID, OpportunityID = ProjectionEntryModel.OpportunityID, WarehouseId = ProjectionEntryModel.WarehouseID, Quantity = ProjectionEntryModel.Quantity, Created = ProjectionEntryModel.Created, DateInvoiced = ProjectionEntryModel.DateInvoiced, ActivityId = ProjectionEntryModel.ActivityId, ServiceActivityId = ProjectionEntryModel.ServiceActivityId, ProjectManagerID = ProjectionEntryModel.ProjectManagerID, }; var returnstatus = ProjectionHelperService.ProjectionEntryAdd(ProjectionEntryModelRecord); } } return(View(LoadDropDownsServices.ProjectionDropdowns())); }
public ActionResult Index() { if (Session["Username"] == null) { return(RedirectToAction("Login", "Login")); } else { return(View(LoadDropDownsServices.ProjectionDropdowns())); } }