public ActionResult Delete(string Id)
 {
     if (_receiptService.DeleteReceipt(Id))
     {
         return(new HttpStatusCodeResult(System.Net.HttpStatusCode.OK));
     }
     return(new HttpStatusCodeResult(System.Net.HttpStatusCode.BadRequest));
 }
Exemple #2
0
        public async Task <IActionResult> DeleteReceipt(int id)
        {
            var result = await _receiptService.DeleteReceipt(id);

            return(new OkObjectResult(ApiResponse.Delete(result)));
        }