public IHttpActionResult Register(RegisterModel model) { bool result = false; if (ModelState.IsValid) { result = _account.Register(model); } return(Ok(result)); }