public async Task <CoffeeModel> CreateCoffeeAsync(CoffeeModel model) { if (model == null) { throw new Exception("No Data Received"); } model.Validate(); var newCoffee = await _repo.CreateCoffeeAsync(model); return(newCoffee); }