Ejemplo n.º 1
0
        public ActionResult AccountCreation()
        {
            EmployeeVM employee = new EmployeeVM();

            employee.TeamList       = Mapper.Map <List <TeamsVM> >(TeamsDAL.ReadTeams());
            employee.AssignmentList = Mapper.Map <List <AssignmentVM> >(AssignmentDAL.ReadAssignments());
            employee.RoleList       = Mapper.Map <List <RolesVM> >(RolesDAL.ReadRoles());
            return(View(employee));
        }
Ejemplo n.º 2
0
        public ActionResult CreateKPI()
        {
            KPIVM kpi = new KPIVM();

            kpi.Assignments = Mapper.Map <List <AssignmentVM> >(AssignmentDAL.ReadAssignments());
            kpi.Projects    = Mapper.Map <List <ProjectVM> >(ProjectDAL.ReadProjects());
            kpi.Sprints     = Mapper.Map <List <SprintVM> >(SprintDAL.ReadSprints());
            kpi.Stories     = Mapper.Map <List <StoryVM> >(StoryDAL.ReadStorys());
            return(View(kpi));
        }
Ejemplo n.º 3
0
        public ActionResult UpdateKPI(string id)
        {
            KPIVM kpi = new KPIVM();

            kpi             = Mapper.Map <KPIVM>(KPI_DAL.ReadKPIById(id));
            kpi.Stories     = Mapper.Map <List <StoryVM> >(StoryDAL.ReadStorys());
            kpi.Projects    = Mapper.Map <List <ProjectVM> >(ProjectDAL.ReadProjects());
            kpi.Sprints     = Mapper.Map <List <SprintVM> >(SprintDAL.ReadSprints());
            kpi.Assignments = Mapper.Map <List <AssignmentVM> >(AssignmentDAL.ReadAssignments());
            return(View(kpi));
        }
Ejemplo n.º 4
0
 public ActionResult ReadAssignments()
 {
     return(View(Mapper.Map <List <AddressVM> >(AssignmentDAL.ReadAssignments())));
 }