Example #1
0
        public async Task<IActionResult> DeleteUrun(int id)
        {
            UrunResponse urunResponse = await urunService.DeleteAsync(id);

            if (urunResponse.Success)
            {
                return Ok(urunResponse.Urun);
            }
            else
            {
                return BadRequest(urunResponse.Message);
            }
        }