Beispiel #1
0
        public async Task <IActionResult> Get()
        {
            await _kullaniciService.AddAsync(new Entities.Tables.Kullanici {
                Adi = "Deneme", Sehir = "Şehir Deneme"
            });

            return(Ok("Ok"));
        }
Beispiel #2
0
        public async Task <IActionResult> Save(KullaniciDto kullaniciDto)
        {
            var newKullanici = await _kullaniciService.AddAsync(_mapper.Map <Kullanici>(kullaniciDto));

            return(Created(string.Empty, _mapper.Map <KullaniciDto>(newKullanici)));
        }