Beispiel #1
0
        public LoadSearchRequestResponse Get()
        {
            if (!ModelState.IsValid)
            {
                throw new HttpException((int)HttpStatusCode.BadRequest, "Invalid Request");
            }
            var response = new LoadSearchRequestResponse
            {
                Loads = loadService.GetAll().Select(x => x.CreateFromServerToClient())
            };

            return(response);
        }