public void Delete(string id) { var function = _functionRepository.GetSingleByCondition(x => x.ID == id); _functionRepository.Delete(function); }