Exemplo n.º 1
0
        public IHttpActionResult Get()
        {
            DataBaseMrRobotConn dbConn = new DataBaseMrRobotConn();

            //DataBaseConn dbConn = new DataBaseConn();
            return(Ok(dbConn.getData()));// need to do: try and catch
        }
Exemplo n.º 2
0
        public IHttpActionResult Delete(int id)
        {
            DataBaseMrRobotConn dbConn = new DataBaseMrRobotConn();

            return(Ok(dbConn.deleteData(id)));// need to do: try and catch
        }
Exemplo n.º 3
0
        public IHttpActionResult Post([FromUri] String name, [FromUri()] int id)
        {
            DataBaseMrRobotConn dbConn = new DataBaseMrRobotConn();

            return(Ok(dbConn.setData(name, id)));
        }
Exemplo n.º 4
0
        public IHttpActionResult Get(String name)
        {
            DataBaseMrRobotConn dbConn = new DataBaseMrRobotConn();

            return(Ok(dbConn.getID(name)));// need to do: try and catch
        }