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

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