public IActionResult AracSil([FromBody] int id)
 {
     try
     {
         aracServis.Delete(aracServis.Get(c => c.Id == id));
         return(Ok());
     }
     catch (Exception e)
     {
         return(BadRequest(new { e.Message }));
     }
 }
Пример #2
0
        public async Task <IActionResult> Remove(int id)
        {
            try
            {
                var firmaid = HttpContext.Session.GetInt32(Metrics.SessionKeys.FirmaId).Value;
                await _aracService.Delete(id, firmaid);

                return(Json(true));
            }
            catch (Exception e)
            {
                return(Json(false));
            }
        }