Esempio n. 1
0
        // GET: Employee
        public ActionResult Create()
        {
            var id = UserBL.ReadAll().First(u => u.Name == User.Identity.GetUserName()).Id;

            ViewBag.Positions = PositionBL.ReadByCompany(CompanyBL.Read(id).Id);
            ViewBag.Groups    = GroupBL.ReadByCompany(CompanyBL.Read(id).Id);
            return(View(new EmployeeViewModel()));
        }