Beispiel #1
0
        public void Put([FromBody] Posts value)
        {
            HandlePostData Put = new HandlePostData();

            Put.Put(value);
        }
Beispiel #2
0
        public void Delete(int id)
        {
            HandlePostData Delete = new HandlePostData();

            Delete.Delete(id);
        }
Beispiel #3
0
        public void Post([FromBody] Posts newPost)
        {
            HandlePostData Post = new HandlePostData();

            Post.Post(newPost);
        }
Beispiel #4
0
        public Posts ListPostsById(int id)
        {
            HandlePostData GetById = new HandlePostData();

            return(GetById.GetById(id));
        }
Beispiel #5
0
        public IEnumerable <Posts> ListAllPosts()
        {
            HandlePostData Get = new HandlePostData();

            return(Get.Get());
        }