Esempio n. 1
0
        public IHttpActionResult Post()
        {
            ScreenContext db = new ScreenContext();

            AngularJSAuthentication.API.Order or = new AngularJSAuthentication.API.Order();

            or.name = "test order";

            db.Orders.Add(or);

            db.SaveChanges();

            return(Ok(Order.CreateOrders()));
        }
Esempio n. 2
0
        public IHttpActionResult Get()
        {
            ScreenContext db = new ScreenContext();

            AngularJSAuthentication.API.Order or = new AngularJSAuthentication.API.Order();

            //or.name = "test order";

            //db.Orders.Add(or);

            //db.SaveChanges();

            //return Ok(Order.CreateOrders());

            return(Ok("dummy order here"));
        }