/// <summary> /// API to GET all employees based on filters and Sort Order /// </summary> /// <param name="parameters"></param> /// <returns></returns> public IHttpActionResult PostAllActiveEmployees(EmployeeParameters parameters) { _Logger.Info("PostAllActiveEmployees API called."); try { EmployeePagedModel EmployeeList = new EmployeePagedModel(); EmployeeList = _BusinessOperations.GetActiveListByPagination(parameters); return(Ok(EmployeeList)); } catch (EmployeeManagementExceptions exception) { _Logger.Error(exception.ToString()); return(InternalServerError(exception)); } catch (Exception ex) { _Logger.Fatal(ex.ToString()); return(InternalServerError(ex)); } }