/// <summary> /// Method for update a comment /// </summary> /// <param name="id"></param> /// <param name="entity"></param> /// <returns></returns> public Comment Update(int id, Comment entity) { Repo.Update(entity); Repo.Save(); return(Repo.GetById(id)); }