コード例 #1
0
        async public Task <IHttpActionResult> Register(RegisterModel model)
        {
            if (model == null)
            {
                return(BadRequest("Invalid credentials"));
            }

            var item = model.Map <Register>();

            var result = await IdentiyService.Register(item);

            var parsed = result.Map <AccessModel>();

            return(Ok(parsed));
        }