Ejemplo n.º 1
0
 public ActionResult CreateProjectInform(string projectCode = "")
 {
     // Security needed
     if (projectCode != string.Empty)
     {
         var request = new ProjectRequest() { ProjectCode = projectCode };
         var response = new ProjectFactory().GetProjectByCode(request);
         if(response.Project != null)
         {
             var model = new ProjectInformModel();
             model.Project = response.Project;
             model.DateCreated = DateTime.Now;
             model.DateModified = DateTime.Now;
             model.InspectorName = SessionManager.FullName;
             return View(model);
         }
     }
     return View();
 }
Ejemplo n.º 2
0
 //
 // GET: /Project/
 public ActionResult Index()
 {
     var model = new ProjectInformModel();
     var request = new ProjectInformRequest { EmployeeId = SessionManager.EmployeeId };
     model.PendingProjectInforms = new ProjectInformFactory().GetPendingProjectInform(request).ProjectInformList;
     return View(model);
 }