public IHttpActionResult Delete(SeatDeleteCommand seat) { var validator = seat.Validation(); if (!validator.IsValid) { return(HandleValidationFailure(validator.Errors)); } return(HandleCallback(() => SeatAppService.Delete(seat))); }
public bool Delete(SeatDeleteCommand seat) { return(SeatRepository.Delete(seat.Id)); }