示例#1
0
        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);
        }