本文整理汇总了C#中Controller.Save方法的典型用法代码示例。如果您正苦于以下问题:C# Controller.Save方法的具体用法?C# Controller.Save怎么用?C# Controller.Save使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Controller
的用法示例。
在下文中一共展示了Controller.Save方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: btnSave_Click
protected void btnSave_Click(object sender, EventArgs e)
{
Controller controller = new Controller();
GetDataFromForm();
if (controller.Save(EntCompany))
{
Response.Redirect("Default.aspx");
}
}
示例2: btnSave_Click
protected void btnSave_Click(object sender, EventArgs e)
{
Controller tcontroller = new Controller();
GetDataFromForm();
if (tcontroller.Save(EntTicket))
{
Ticket lastTicket = EntTicket;
Category EntCategory = EntTicket.Category;
TicketCloseSendMail(EntCategory, lastTicket);
btnSave.Visible = false;
}
}
示例3: btnSave_Click
protected void btnSave_Click(object sender, EventArgs e)
{
Controller controller = new Controller();
GetDataFromForm();
if (controller.Save(EntCategory))
{
Response.Redirect("Default.aspx");
}
else
{
lblError.Visible = true;
lblError.Text = "Error al guardar la información";
}
}
示例4: btnSave_Click
protected void btnSave_Click(object sender, EventArgs e)
{
Controller tcontroller = new Controller();
GetDataFromForm();
int ilResult =tcontroller.Save(EntTicket);
if (ilResult!=-1)
{
Ticket lastTicket = EntTicket;
Category EntCategory = EntTicket.Category;
TicketCloseSendMail(EntCategory, lastTicket);
btnSave.Visible = false;
}
else
{
lblError.Visible = true;
lblError.Text = "Error al guardar la información";
}
}