Пример #1
0
        internal Bug EditBugById(Bug editedBug)
        {
            Bug bugExists = _bugrepo.GetBugById(editedBug.Id);

            if (bugExists == null)
            {
                throw new Exception("Invalid: Cannot Edit Bug");
            }
            _bugrepo.EditBugById(editedBug);
            return(editedBug);
        }