Exemplo n.º 1
0
        // GET: Company
        public ActionResult RosterReport()
        {
            int             CompanyId = (int)(Session["CompanyId"]);
            RosterViewModel rosters   = new RosterViewModel();

            RosterList = _IRosterService.GetAllRoster(CompanyId).Select(c => new RosterListViewModel
            {
                Id         = c.Id,
                EndDate    = c.EndDate,
                FinishTime = c.FinishTime,
                StartDate  = c.StartDate,
                StartTime  = c.StartTime,
                UserId     = c.UserId
            }).ToList();
            rosters.RosterList = RosterList;
            return(View("Roster", rosters));
        }