public HttpResponseMessage Post(List <Pallet> e)
        {
            HttpResponseMessage response = null;

            try
            {
                var inventory = new List <Pallet>();


                inventory = PalletRepository.InsertPallet(e);
                response  = Request.CreateResponse(HttpStatusCode.OK, inventory);
            }
            catch (Exception x)
            {
                string error = x.ToString();
                if (error.Equals("An error occurred while updating the entries. See the inner exception for details."))
                {
                    return(new HttpResponseMessage(HttpStatusCode.NotModified));
                }
                else
                {
                    return(new HttpResponseMessage(HttpStatusCode.Forbidden));
                }
            }


            return(response);
        }