Beispiel #1
0
        public Keep EditKeepAmount(Keep updated, Profile userInfo)
        {
            Keep original = _repo.GetById(updated.Id);

            if (original == null)
            {
                throw new Exception("This keep does not exist!");
            }
            original.Keeps++;
            _repo.EditKeepAmount(original);
            return(original);
        }