public IHttpActionResult ReverseWords(string sentence) { try { if (string.IsNullOrEmpty(sentence)) { return(Ok(string.Empty)); } else { return(Ok(helpers.ReverseWords(sentence))); } } catch (System.Exception) { return(BadRequest("Error")); } }
public IHttpActionResult ReverseWords(string sentence) { try { if (string.IsNullOrEmpty(sentence)) { return(Ok(string.Empty)); } else { return(Ok(helpers.ReverseWords(sentence))); } } catch (System.Exception) { return(BadRequest("Error")); } }