// DELETE api/<controller>/5
        public IHttpActionResult Delete(int id)
        {
            var content = new ResponseContent <KiralikBilgi>(null);

            using (var kiralikBilgiBusiness = new KiralikBilgiBusiness())
            {
                content.Result = kiralikBilgiBusiness.DeleteById(id) ? "1" : "0";

                return(new StandartResult <KiralikBilgi>(content, Request));
            }
        }
Beispiel #2
0
 public bool SilKiralikBilgi(int kiralikBilgiId)
 {
     try
     {
         using (KiralikBilgiBusiness kiralikBilgiBusiness = new KiralikBilgiBusiness())
         {
             kiralikBilgiBusiness.DeleteById(kiralikBilgiId);
         }
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }