public async Task <IHttpActionResult> Register([FromBody] RegistrationInfo info) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } IdentityResult result = await _manager.CreateAsync(info); IHttpActionResult errorResult = GetErrorResult(result); if (errorResult != null) { return(errorResult); } return(Created <UserDTO>("", null)); }