public IActionResult Get() { var contracts = _contractRepository.AllIncluding(e => e.Employee).Where(rs => rs.RecordStatus == RecordStatus.Active); if (contracts.Any()) { return(Ok(contracts)); } return(NoContent()); }
public IActionResult Get() { var contracts = _contractRepository.AllIncluding(e => e.Employee).Where(rs => rs.RecordStatus == RecordStatus.Active); if (contracts.Any()) { return(Ok(contracts)); } return(NoContent()); }