public HttpResponseMessage GetAllWarehouseForGridLoad() { var wh = warehouseRepository.GetAllWarehouseForGridLoad(); var formatter = RequestFormat.JsonFormaterString(); return(Request.CreateResponse(HttpStatusCode.OK, wh, formatter)); }