internal Bug EditBug(Bug update)
        {
            Bug exists = _repo.GetBugById(update.Id);

            if (exists == null)
            {
                throw new Exception("Invalid Request");
            }
            _repo.EditBug(update);
            return(update);
        }