This post is on the older side and its content may be out of date.
Be sure to visit our blogs homepage for our latest news, updates and information.
[Category(
"String Properties"
)]
public
string
Message {
get
;
set
; }
public
ActionResult Index()
{
var model =
new
MyWidget1Model();
if
(
string
.IsNullOrEmpty(
this
.Message))
{
model.Message =
"Hello, World!"
;
}
else
{
model.Message =
this
.Message;
}
return
View(
"Default"
, model);
}
[ActionName(
"!content"
)]
public
ActionResult Filter()
{
var model =
new
MyWidget1Model();
if
(
string
.IsNullOrEmpty(
this
.Message))
{
model.Message =
"Hello, World!"
;
}
else
{
model.Message =
this
.Message;
}
return
View(
"Default"
, model);
}
Subscribe to get all the news, info and tutorials you need to build better business apps and sites