Example #1
0
        public IHttpActionResult Post(SessionAddCommand session)
        {
            var validator = session.Validation();

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