public ActionResult Create(EmployeeLeaveTypeVM model)
        {
            if (ModelState.IsValid)
            {
                #region CreateOrEditExample
                //if (model.Id > 0)
                //{
                //    var data = _employeeLeaveTypeBusinessEngine.EditEmployeeLeaveType(model);

                //}
                //else
                //{
                //    var data = _employeeLeaveTypeBusinessEngine.CreateEmployeeLeaveType(model);
                //    if (data.IsSuccess)
                //    {
                //        return RedirectToAction("Index");
                //    }
                //    return View(model);
                //}
                #endregion
                var data = _employeeLeaveTypeBusinessEngine.CreateEmployeeLeaveType(model);
                if (data.IsSuccess)
                {
                    return(RedirectToAction("Index"));
                }
                return(View(model));
            }
            else
            {
                return(View(model));
            }
        }
        public ActionResult Create(EmployeeLeaveTypeVM model)
        {
            if (ModelState.IsValid)
            {
                var data = _employeeLeaveTypeBusinessEngine.CreateEmployeeLeaveType(model);
                if (data.IsSucces)
                {
                    return(RedirectToAction("Index"));
                }

                return(View(model));
            }
            else
            {
                return(View(model));
            }
        }