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