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

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