public async Task <IEnumerable <PhoneTypesVM> > GetPhoneTypes(int fileType = 0) { if (fileType != 1 && fileType != 2 && fileType != 0) { fileType = 0; } var result = await _phoneBookRepository.GetPhoneTypes(fileType); return(result); }