Beispiel #1
0
        // DELETE api/<controller>/5
        public IHttpActionResult Delete(int id)
        {
            var content = new ResponseContent <Sirket>(null);

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

                return(new StandartResult <Sirket>(content, Request));
            }
        }
Beispiel #2
0
 public bool SilSirket(int sirketId)
 {
     try
     {
         using (SirketBusiness sirketBusiness = new SirketBusiness())
         {
             sirketBusiness.DeleteById(sirketId);
         }
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }