Ejemplo n.º 1
0
        public IHttpActionResult Delete(SeatDeleteCommand seat)
        {
            var validator = seat.Validation();

            if (!validator.IsValid)
            {
                return(HandleValidationFailure(validator.Errors));
            }
            return(HandleCallback(() => SeatAppService.Delete(seat)));
        }
Ejemplo n.º 2
0
 public bool Delete(SeatDeleteCommand seat)
 {
     return(SeatRepository.Delete(seat.Id));
 }