public bool NameExists([FromBody] PilotDetailsDto pilotDto) { return(pilotService.CheckNameExists(pilotDto)); }
public bool CheckNameExists(PilotDetailsDto pilotDto) { return(context.Pilots.Any(p => p.Name.ToUpper().Trim() == pilotDto.Name.ToUpper().Trim())); }
public bool CheckNameExists(PilotDetailsDto pilotDto) { return(pilotRepository.CheckNameExists(pilotDto)); }