Ejemplo n.º 1
0
        public void Post([FromBody] CategoryModel Category)
        {
            int PostId = Category.PostId;

            Category.PostId = new int();
            PostLogic.AddCategory(PostId, CategoryControllerMapper.Map <CategoryModel, CategoryDTO>(Category));
        }
Ejemplo n.º 2
0
 // PUT api/<controller>/5
 public void Put(int PostId, [FromBody] CategoryModel Category)
 {
     PostLogic.AddCategory(PostId, PostControllerMapper.Map <CategoryModel, CategoryDTO>(Category));
 }