Exemple #1
0
 // DELETE: api/Arac/5
 public IHttpActionResult Delete(int id)
 {
     if (YoneticiBusiness.YoneticiIdSec(id) == null)
     {
         return(NotFound());
     }
     return(Ok(YoneticiBusiness.YoneticiIdSil(id)));
 }
Exemple #2
0
 public bool YoneticiIdSil(int id)
 {
     try
     {
         using (var business = new YoneticiBusiness())
         {
             business.YoneticiIdSil(id);
         }
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }