public Ninja Create(Ninja ninja) { //_repo is the NinjaRepository accessed //through services; Create is the method //in _repo too return(_repo.Create(ninja)); }
private async void OnCreateNinja() { _ninjaRepository.Create(_model); UserDialogs.Instance.Toast("Created Ninja"); _model = new Ninja(); FirstName = _model.FirstName; LastName = _model.LastName; }