Esempio n. 1
0
 public ICollection <Post> GetPostByName(string name, User user)
 {
     return(Post_Repo.GetPostByName(name, user));
 }
Esempio n. 2
0
 public int DeletePost(int id)
 {
     return(Post_Repo.Delete(id));
 }
Esempio n. 3
0
 public Post GetPostById(int id)
 {
     return(Post_Repo.GetPostById(id));
 }
Esempio n. 4
0
 public ICollection <Post> GetPostByGroup(Group group)
 {
     return(Post_Repo.GetPostByGroup(group));
 }
Esempio n. 5
0
 // Manage Posts //
 public Post CreatePost(Post post, int idUser, int idGroup)
 {
     return(Post_Repo.Create(post, idUser, idGroup));
 }
Esempio n. 6
0
 public int AddPictureToAPost(Post post, string pathPicture)
 {
     return(Post_Repo.AddPictureToAPost(post, pathPicture));
 }
Esempio n. 7
0
 public ICollection <Post> GetPostFollow(int id)
 {
     return(Post_Repo.GetPostFollow(id));
 }