public ActionResult Create(WorkingProcessViewModel model)
        {
            var BonusDisciplineList = bonusDesciplineRepository.GetAllvwBonusDiscipline().Where(x => x.StaffId == model.StaffId)
                                      .Select(item => new BonusDisciplineViewModel
            {
                Code         = item.Code,
                Id           = item.Id,
                Formality    = item.Formality,
                Reason       = item.Reason,
                DayDecision  = item.DayDecision,
                DayEffective = item.DayEffective
            });

            ViewBag.BonusDisciplineList = BonusDisciplineList;
            if (ModelState.IsValid)
            {
                var WorkingProcess = new Domain.Staff.Entities.WorkingProcess();
                AutoMapper.Mapper.Map(model, WorkingProcess);
                WorkingProcess.IsDeleted      = false;
                WorkingProcess.CreatedUserId  = WebSecurity.CurrentUserId;
                WorkingProcess.ModifiedUserId = WebSecurity.CurrentUserId;
                WorkingProcess.CreatedDate    = DateTime.Now;
                WorkingProcess.ModifiedDate   = DateTime.Now;
                WorkingProcessRepository.InsertWorkingProcess(WorkingProcess);
                if (Request["IsPopup"] == "true" || Request["IsPopup"] == "True")
                {
                    ViewBag.closePopup = "true";
                    model.Id           = WorkingProcess.Id;
                    //model.TypeList = Helpers.SelectListHelper.GetSelectList_Category("DayOffType", null, "Name", false);
                    return(View(model));
                }
                return(RedirectToAction("Detail", "Staffs", new { area = "Staff", Id = model.StaffId }));
            }
            return(RedirectToAction("Create"));
        }