Пример #1
0
        internal Keep EditKeepCount(Keep editKeep, string userId)
        {
            Keep original = _repo.GetOne(editKeep.Id);

            if (original == null)
            {
                throw new Exception("Incorrect Id");
            }

            original.Keeps++;
            _repo.EditKeepCount(original);

            return(original);
        }