public ActionResult <IEnumerable <Models.Employee> > Get(int?_pageIndex, int?_pageSize)
 {
     try
     {
         List <Models.Employee> result;
         // if (_pageIndex!=null && _pageSize!=null){
         //  result= _employeeService.GetPaged(_pageIndex.Value,_pageSize.Value).ToList();
         // }else{result=_employeeService.Get().ToList();}
         //  result= _employeeService.Get().ToList();
         result = _employeeService.Get().ToList();
         return(result);
         //return Ok();
     }
     catch (Exception)
     {
         _logger.LogError("Failed to execute GET");
         return(BadRequest());
     }
 }
 public IActionResult Get()
 {
     return(Ok(employeeService.Get()));
 }