Table of Contents

Class RazorPage<TModel>

Namespace
Phoesion.Glow.SDK.Firefly
Assembly
Phoesion.Glow.SDK.Firefly.dll

A shell class for cshtml editor to pickup types

public abstract class RazorPage<TModel> where TModel : class

Type Parameters

TModel
Inheritance
object
RazorPage<TModel>
Derived

Fields

Layout

public string? Layout

Field Value

string

Properties

Context

public IActionContext Context { get; }

Property Value

IActionContext

Html

public IRazorHtmlHelper<TModel> Html { get; }

Property Value

IRazorHtmlHelper<TModel>

Logger

public ILogger Logger { get; }

Property Value

ILogger

Model

public TModel Model { get; }

Property Value

TModel

ModelState

public ModelState ModelState { get; }

Property Value

ModelState

Request

public IPhotonRequest Request { get; }

Property Value

IPhotonRequest

Response

public IPhotonResponse Response { get; }

Property Value

IPhotonResponse

RestRequest

public IPhotonActionRequest RestRequest { get; }

Property Value

IPhotonActionRequest

RestResponse

public IPhotonActionResponse RestResponse { get; }

Property Value

IPhotonActionResponse

ViewBag

public dynamic ViewBag { get; }

Property Value

dynamic

ViewData

public IDictionary<string, object> ViewData { get; }

Property Value

IDictionary<string, object>

Methods

IncludeAsync(string)

public Task<string> IncludeAsync(string view)

Parameters

view string

Returns

Task<string>

IncludeAsync(string, object)

public Task<string> IncludeAsync(string view, object model)

Parameters

view string
model object

Returns

Task<string>

RenderBody()

protected string RenderBody()

Returns

string

RenderBodyAsync()

protected Task<string> RenderBodyAsync()

Returns

Task<string>

RenderSection(string)

public string RenderSection(string name)

Parameters

name string

Returns

string

RenderSection(string, bool)

public string RenderSection(string name, bool required)

Parameters

name string
required bool

Returns

string