using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace qbridge.Controllers
{
[Route("[controller]")]
[ApiController]
[Produces("application/json")]
public class QBridgeController : ControllerBase
{
public QBridgeController()
{
}
[HttpGet]
public ContentResult Index()
{
var errorBlock = string.Empty;
var resp = $@"
AyaNova QBOI bridge authorization server
";
return new ContentResult
{
ContentType = "text/html",
StatusCode = 200,
Content = resp
};
}
[HttpPost]
public IActionResult Index([FromForm]string uname,[FromForm]string pwd)
{
return Content($"Uname: {uname}, Password: {pwd}");
}
// public class CBUserModel
// {
// [Required(ErrorMessage = "UserName is required")]
// public string UserName { get; set; }
// [Required(ErrorMessage = "Password is required")]
// [DataType(DataType.Password)]
// public string Password { get; set; }
// }
// *************************************************************************************************************
}
}