示例#1
0
 public void AddLike(ServiceLike like)
 {
     unit.Likes.Create(like.ToDalLike());
     unit.Save();
 }
示例#2
0
 public void RemoveLike(ServiceLike like)
 {
     unit.Likes.Delete(like.ToDalLike());
     unit.Save();
 }
示例#3
0
 public void UpdateLike(ServiceLike like)
 {
     unit.Likes.Update(like.ToDalLike());
     unit.Save();
 }