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(); }
public LikeableArea AddLikeAble(LikeableArea like) { _context.LikeableAreas.Add(like); _context.SaveChanges(); return(like); }
public void RemoveLikeArea(LikeableArea like) { _context.LikeableAreas.Remove(like); _context.SaveChanges(); }