// POST api/RequestForQuotationDescription
        public HttpResponseMessage PostRequestForQuotationDescription(RequestForQuotationDescription requestforquotationdescription)
        {
            if (ModelState.IsValid)
            {
                requestforquotationdescription.InsertBy = loginUser.UserID;
                db.RequestForQuotationDescriptions.Add(requestforquotationdescription);
                db.SaveChanges();

                HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.Created, requestforquotationdescription);
                response.Headers.Location = new Uri(Url.Link("DefaultApi", new { id = requestforquotationdescription.RequestForQuotationDescriptionID }));
                return response;
            }
            else
            {
                return Request.CreateErrorResponse(HttpStatusCode.BadRequest, ModelState);
            }
        }
        // PUT api/RequestForQuotationDescription/5
        public HttpResponseMessage PutRequestForQuotationDescription(long id, RequestForQuotationDescription requestforquotationdescription)
        {
            if (!ModelState.IsValid)
            {
                return Request.CreateErrorResponse(HttpStatusCode.BadRequest, ModelState);
            }

            if (id != requestforquotationdescription.RequestForQuotationDescriptionID)
            {
                return Request.CreateResponse(HttpStatusCode.BadRequest);
            }
            requestforquotationdescription.UpdateBy = loginUser.UserID;

            db.Entry(requestforquotationdescription).State = EntityState.Modified;

            try
            {
                db.SaveChanges();
            }
            catch (DbUpdateConcurrencyException ex)
            {
                return Request.CreateErrorResponse(HttpStatusCode.NotFound, ex);
            }

            return Request.CreateResponse(HttpStatusCode.OK);
        }