public IActionResult UnLovePost([FromBody] PostLoves PostLoves) { _Context.Remove(PostLoves); _Context.SaveChanges(); return(Ok()); }
public IActionResult LovePost([FromBody] PostLoves PostLoves) { _Context.PostLoves.Add(PostLoves); _Context.SaveChanges(); return(Created("", null)); }