public IActionResult Get(int phone) { var text = VoiceService.GetByPhone(phone); if (string.IsNullOrEmpty(text)) { return(BadRequest("The item doesn't exists")); } return(Ok(text)); }
public IActionResult Get(int phone) { var text = VoiceService.GetByPhone(phone); if (string.IsNullOrEmpty(text)) { return(BadRequest("The item doesn't exists")); } return(Ok(text)); }