protected void Page_Load(object sender, EventArgs e)
    {
        if ((string)Session["allow"] == "1")
        {
            addActorButton.Visible = true;
        }

        if (Request["oid"] != null)
        {
            DataList1.DataSource = Actors.GetAllActorsOrdered(Request["oid"]);
        }
        else
        {
            DataList1.DataSource = Actors.GetAllActors();
        }
        DataList1.DataBind();
    }
Beispiel #2
0
 public async Task <IActionResult> Get()
 {
     return(Ok(await actors.GetAllActors()));
 }