Exemplo n.º 1
0
        // PUT: api/LkCategory/5
        public async Task <HttpResponseMessage> PutAsync([FromBody] LKCategory value)
        {
            Store.Update(value);
            await Store.SaveAsync();

            return(CreateResponse(HttpStatusCode.OK, value.ID));
        }
Exemplo n.º 2
0
        public async Task <HttpResponseMessage> GetAsync(int id)
        {
            LKCategory cat = await Store.GetAsync(id);

            return(CreateResponse(HttpStatusCode.OK, cat));
        }