public HttpResponseMessage GetImagesList() { try { List <ImageModel> im = imageLogic.GetImages(); return(Request.CreateResponse(HttpStatusCode.OK, im)); } catch (Exception ex) { return(Request.CreateResponse(HttpStatusCode.InternalServerError, ex)); } }