public async Task <ActionResult <GetPhoneBook> > AddPhoneNumber([FromBody] PhoneBookVM phoneBook, int fileType = 0) { if (fileType != 1 && fileType != 2 && fileType != 0) { fileType = 0; } var result = await _phoneBookRepository.AddPhoneNumber(phoneBook, fileType); if (result == null) { return(new BadRequestObjectResult("Check user data")); } return(result); }