Showing posts with label Web API validation on input field. Show all posts
Showing posts with label Web API validation on input field. Show all posts

Monday 14 December 2015

Web API validation on input field

 string results = "printerName can not be null or empty";
 var resp = new HttpResponseMessage(HttpStatusCode.BadRequest);resp.Content = new StringContent(results);
return resp;