Exemplo n.º 1
0
 public ActionResult restrarUsuarioAuth([FromBody] UserOauthRegister userAuth)
 {
     try
     {
         var result = UserDataAccess.restrarUsuarioAuth(userAuth);
         return(Ok(result));
     }
     catch (Exception _exc)
     {
         throw _exc;
     }
 }
Exemplo n.º 2
0
 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;
     }
 }