Exemplo n.º 1
0
        public void UpdateLikeArea(LikeableArea updateLike, LikeableArea like)
        {
            updateLike.Status = like.Status;
            updateLike.Text   = like.Text;

            updateLike.ActionText = like.ActionText;

            updateLike.Experince = like.Experince;
            updateLike.AboutUsId = like.AboutUsId;
            updateLike.Title     = like.Title;
            updateLike.Photo     = like.Photo;

            _context.SaveChanges();
        }
Exemplo n.º 2
0
 public LikeableArea AddLikeAble(LikeableArea like)
 {
     _context.LikeableAreas.Add(like);
     _context.SaveChanges();
     return(like);
 }
Exemplo n.º 3
0
 public void RemoveLikeArea(LikeableArea like)
 {
     _context.LikeableAreas.Remove(like);
     _context.SaveChanges();
 }