public IHttpActionResult Delete(MovieTheaterDeleteCommand movieTheater) { var validator = movieTheater.Validation(); if (!validator.IsValid) { return(HandleValidationFailure(validator.Errors)); } return(HandleCallback(() => MovieTheaterAppService.Delete(movieTheater))); }
public bool Delete(MovieTheaterDeleteCommand movieTheater) { return(MovieTheaterRepository.Delete(movieTheater.Id)); }