public async Task <ActionResult> Assign(Guid?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            AssignmentAssignViewModel assignmentViewModel = Mapper.Map <AssignmentAssignViewModel>(await Service.GetByIdAsync(id));

            this.AssignmentParameters.ID        = assignmentViewModel.ID;
            this.AssignmentParameters.StartTime = assignmentViewModel.StartTime;
            this.AssignmentParameters.EndTime   = assignmentViewModel.EndTime;
            assignmentViewModel.EmployeeList    = Mapper.Map <IEnumerable <IAssignedEntity> >(await Service.GetAllEmployeesAsync(AssignmentParameters));

            return(View(assignmentViewModel));
        }