public ActionResult Create() { var clientRepo = new ClientRepository(_context); var clientItems = clientRepo.GetSelectListItems(); var workTypeRepo = new WorkTypeRepository(_context); var workTypeItems = workTypeRepo.GetSelectListItems(); var formModel = new CreateWorkDone { ClientItems = clientItems, WorkTypeItems = workTypeItems }; return(View(formModel)); }