/// <summary> /// Returns a burger by its id or throws an exception /// </summary> /// <param name="id"></param> /// <returns></returns> public Burger GetBurgerById(string id) { var burger = _repo.GetBurgerById(id); if (burger == null) { throw new Exception("I DONT LIKE BAD ID's"); } return(burger); }