// 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())); }
// GET: Position public ActionResult Position(int companyId) { return(View(PositionBL.ReadByCompany(companyId))); }