Пример #1
0
        public IHttpActionResult CreateCategory()
        {
            var httpBody   = ControllerContext.Request.Content.ReadAsStringAsync().Result;
            var dictionary = JsonConvert.DeserializeObject <Dictionary <string, object> >(httpBody);

            return(Ok(service.CreateCategory(dictionary)));
        }