Ejemplo n.º 1
0
 public ActionResult <BaseModel> Register(LoginRequestModel model)
 {
     try {
         var result = mainManager.Register(model.email, model.password);
         return(Ok(result));
     }
     catch (Exception ex) {
         logger.LogError(ex.Message);
         return(BadRequest((BaseModel)ex.Message));
     }
 }