public async Task <LocaleStringResource> GetStringResourceByIdAsync(int id) { if (id <= 0) { return(null); } return(await _repository.GetAsync(id)); }