public ActionResult restrarUsuarioAuth([FromBody] UserOauthRegister userAuth) { try { var result = UserDataAccess.restrarUsuarioAuth(userAuth); return(Ok(result)); } catch (Exception _exc) { throw _exc; } }
internal static object restrarUsuarioAuth(UserOauthRegister userAuth) { try { using (FunnyPlaceBetaContext context = new FunnyPlaceBetaContext()) { context.Add <UserOauthRegister>(userAuth); context.SaveChanges(); return(true); } } catch (Exception _exc) { throw _exc; } }