コード例 #1
0
        public ResponseBase Delete(int bookCod)
        {
            ResponseBase response = new ResponseBase();

            try
            {
                response.Success = _appService.Delete(bookCod);
            }
            catch (LibraryException ex)
            {
                response.Message = ex.Message;
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return(response);
        }
コード例 #2
0
 public void Delete(int id)
 {
     _bookService.Delete(id);
 }
コード例 #3
0
 public IActionResult Delete(Guid id)
 {
     _bookAppService.Delete(id);
     return(Ok());
 }
コード例 #4
0
 public Task Delete(List <Guid> ids)
 {
     return(_BookAppService.Delete(ids));
 }