public HttpResponseMessage GetEmployee() { HttpResponseMessage objresponce = new HttpResponseMessage(); try { ds = objEmp.EmployeeDataFromSQl(); var data = ds.DataSetToJSON(); objresponce = this.Request.CreateResponse(HttpStatusCode.OK); objresponce.Content = new StringContent(data, Encoding.UTF8, "application/json"); } catch (Exception) { throw; } return(objresponce); }