public ActionResult Update(int workerId)
        {
            Worker          workers = repo.GetWorkerById(workerId);
            string          name    = repo.GetNameCompanyById(workers.CompanyId);
            WorkerViewModel worker  = CopyToViewModel(repo.GetWorkerById(workerId), name);

            return(View(worker));
        }
        public ActionResult CompletedWork()
        {
            int        completedAssignments = 0;
            WorkerView Worker = WorkerRepos.GetWorkerById(WorkerID);
            List <ScheduleListView> Schedules = ScheduleRepos.GetScheduleById(Worker.id_Worker);

            foreach (var schedule in Schedules)
            {
                completedAssignments += AssignmentsRepos.GetCompletedAssignmentCount(schedule.id_Schedule);
            }
            Worker.completedWork = completedAssignments;
            return(View(Worker));
        }