コード例 #1
0
        public IHttpActionResult Delete(MovieTheaterDeleteCommand movieTheater)
        {
            var validator = movieTheater.Validation();

            if (!validator.IsValid)
            {
                return(HandleValidationFailure(validator.Errors));
            }
            return(HandleCallback(() => MovieTheaterAppService.Delete(movieTheater)));
        }
コード例 #2
0
 public bool Delete(MovieTheaterDeleteCommand movieTheater)
 {
     return(MovieTheaterRepository.Delete(movieTheater.Id));
 }