public Keep EditViewCount(Keep editKeep) { Keep keep = _repo.Get(editKeep.Id); if (keep == null) { throw new Exception("Invalid Id"); } keep.Views = editKeep.Views; keep.Keeps = editKeep.Keeps; _repo.EditViewCount(keep); return(keep); }
public Keep EditViewCount(Keep editKeep) { Keep keep = _repo.Get(editKeep.Id); if (keep == null) { throw new Exception("Invalid Id"); } keep.Views = editKeep.Views; keep.Keeps = editKeep.Keeps; _repo.EditViewCount(keep); return(keep); }