public HttpResponseMessage checkLogin([FromBody] User value)
        {
            bool recordExisted = false;
            HttpResponseMessage response;
            UserPercistance     pp = new UserPercistance();

            recordExisted = pp.checkLogin(value.username, value.password);
            if (recordExisted)
            {
                response = Request.CreateResponse(HttpStatusCode.NoContent);
            }

            else
            {
                response = Request.CreateResponse(HttpStatusCode.NotFound);
            }
            return(response);
        }
        public HttpResponseMessage Post([FromBody] User value)
        {
            bool            recordExisted = false;
            UserPercistance pp            = new UserPercistance();

            recordExisted = pp.saveUser(value);
            HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.Created);

            if (recordExisted)
            {
                response = Request.CreateResponse(HttpStatusCode.Found);
            }

            else
            {
                response = Request.CreateResponse(HttpStatusCode.Created);
            }
            return(response);
        }