public HttpResponseMessage sendEmail() { return(new HttpResponseMessage(HttpStatusCode.OK) { Content = new ObjectContent <List <Email> >(HomeLogic.GetEmailDetailsQuery(), new JsonMediaTypeFormatter()) }); }
public HttpResponseMessage sendEmail() { return(new HttpResponseMessage(HttpStatusCode.OK) { Content = new ObjectContent <List <Email> >(HomeLogic.GetEmailDetailsQuery(), new JsonMediaTypeFormatter()) }); }