Exemple #1
0
 public bool Delete(int id)
 {
     return(_sqlService
            .Delete(new Bill {
         Id = id
     }) == 1);
 }
        public async Task <ActionResult> Delete(int id)
        {
            try
            {
                await sqlService.Delete(id);

                return(Ok());
            }
            catch (Exception)
            {
                return(NotFound());
            }
        }