예제 #1
0
        public async Task <ActionResult> Delete(string id)
        {
            var deleted = await listingService.Delete(id, UserId());

            if (!deleted)
            {
                return(BadRequest());
            }

            return(Ok());
        }
 public void Delete(int id)
 {
     listingService.Delete(id);
 }