Esempio n. 1
0
        public IHttpActionResult Delete(SessionDeleteCommand session)
        {
            var validator = session.Validation();

            if (!validator.IsValid)
            {
                return(HandleValidationFailure(validator.Errors));
            }
            return(HandleCallback(() => SessionAppService.Delete(session)));
        }