Ejemplo n.º 1
0
 public bool Response()
 {
     switch (_request.HttpMethod)
     {
         case "POST":
             Saver svr = new Saver();
             _ansver = svr.SaveInfo(_request, _response);
             return true;
         case "GET":
             Returner rtrn = new Returner();
             _ansver = rtrn.GetInfo(_request, _response);
             return true;
         case "PUT":
             return false;
         case "DELETE":
             return false;
     }
     return false;
 }
Ejemplo n.º 2
0
        public bool Response()
        {
            switch (_request.HttpMethod)
            {
            case "POST":
                Saver svr = new Saver();
                _ansver = svr.SaveInfo(_request, _response);
                return(true);

            case "GET":
                Returner rtrn = new Returner();
                _ansver = rtrn.GetInfo(_request, _response);
                return(true);

            case "PUT":
                return(false);

            case "DELETE":
                return(false);
            }
            return(false);
        }