コード例 #1
0
 public IActionResult OgretmenSil([FromBody] Ogretmen entity)
 {
     try
     {
         ogretmenServis.Delete(new Ogretmen
         {
             Id = entity.Id
         });
         return(Ok());
     }
     catch (Exception e)
     {
         return(BadRequest(new { e.Message }));
     }
 }
コード例 #2
0
 public void DeleteOgretmen(int id)
 {
     _ogretmenService.Delete(id);
 }