Esempio n. 1
0
 /// <summary>
 /// Removes a like from a post
 /// </summary>
 /// <param name="userid">Guest that unliked the post</param>
 /// <param name="post">Post that got unliked</param>
 /// <returns>true if succesfull</returns>
 public bool Unlike(int userid, Post post)
 {
     return(_context.RemoveLikeFromPost(post, userid));
 }