public ActionResult all_project()
        {
            List <AssignToProject> atp         = new List <AssignToProject>();
            List <Project_Info>    all_project = repo.all_project();

            foreach (var item in all_project)
            {
                string          temp  = Urepo.assignToUser(item.Id);
                AssignToProject temp2 = new AssignToProject();
                temp2.ProjectCode = item.CodeName;
                temp2.ProjectName = item.ProjectName;
                temp2.Duration    = item.Duration;
                temp2.Status      = item.Status;
                temp2.AssignTo    = temp;
                temp2.Id          = item.Id;
                atp.Add(temp2);
            }
            ViewBag.projectList = atp;
            return(View());
        }
Ejemplo n.º 2
0
 public void TestInitialize()
 {
     this.dbStub              = new HatchlingCompanyDbContext(Effort.DbConnectionFactory.CreateTransient());
     this.writerStub          = new Mock <IWriter>();
     this.assignToProjectMock = new AssignToProject(this.dbStub, this.writerStub.Object);
 }