本文整理汇总了C#中Grace类的典型用法代码示例。如果您正苦于以下问题:C# Grace类的具体用法?C# Grace怎么用?C# Grace使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Grace类属于命名空间,在下文中一共展示了Grace类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Member
public Member(Grace.Models.Member member)
{
MemberModel = member;
if (member.MemberID != 0)
{
if (member.MemberRelations.Count > 0)
{
HeadOfHousehold = "Self";
HeadMemberID = member.MemberID;
MemberRelations = member.MemberRelations.ToList();
}
else
{
if (member.MemberRelations1.Count > 0)
{
HeadOfHousehold = member.MemberRelations1[0].Member.FullName;
HeadMemberID = member.MemberRelations1[0].HeadMemberID;
MemberRelations = member.MemberRelations1[0].Member.MemberRelations.ToList();
}
else
{
HeadOfHousehold = "Self";
HeadMemberID = member.MemberID;
MemberRelations = member.MemberRelations1.ToList();
}
}
}
}
示例2: Create
public ActionResult Create(Grace.ViewModels.MemberRelation memberRelation)
{
if (TryValidateModel(memberRelation.MemberRelationModel))
try
{
_repository.Add(memberRelation.MemberRelationModel);
return RedirectToAction(Config.ActionVariables.Edit, Config.ControllerVariables.Member, new {id=memberRelation.MemberRelationModel.HeadMemberID});
}
catch
{
return View(memberRelation);
}
else
return View(memberRelation);
}
示例3: Create
public ActionResult Create(Grace.ViewModels.SSClassTeacher ssClassTeacher)
{
if (TryValidateModel(ssClassTeacher.SSClassTeacherModel))
try
{
_repository.Add(ssClassTeacher.SSClassTeacherModel);
return RedirectToAction(Config.ActionVariables.Edit, Config.ControllerVariables.SSClass, new { id = ssClassTeacher.SSClassTeacherModel.SSClassID });
}
catch
{
return View(ssClassTeacher);
}
else
return View(ssClassTeacher);
}
示例4: Create
public ActionResult Create(Grace.ViewModels.Member member)
{
if (TryValidateModel(member.MemberModel))
try
{
_repository.Add(member.MemberModel);
return RedirectToAction(Config.ActionVariables.Index);
}
catch
{
return View(member);
}
else
return View(member);
}
示例5: Create
public ActionResult Create(Grace.Models.Committee committee)
{
if (ModelState.IsValid)
try
{
_repository.Add(committee);
return RedirectToAction(Config.ActionVariables.Index);
}
catch
{
return View(committee);
}
else
return View(committee);
}
示例6: Create
public ActionResult Create(Grace.ViewModels.CommitteeMember committeeMember)
{
if (TryValidateModel(committeeMember.CommitteeMemberModel))
try
{
_repository.Add(committeeMember.CommitteeMemberModel);
return RedirectToAction(Config.ActionVariables.Edit, Config.ControllerVariables.Committee, new { id = committeeMember.CommitteeMemberModel.CommitteeID });
}
catch
{
return View(committeeMember);
}
else
return View(committeeMember);
}
示例7: DeleteSSClassTeacher
partial void DeleteSSClassTeacher(Grace.Models.SSClassTeacher instance);
示例8: InsertSSClassMember
partial void InsertSSClassMember(Grace.Models.SSClassMember instance);
示例9: UpdateSSClass
partial void UpdateSSClass(Grace.Models.SSClass instance);
示例10: DeleteSSAttendance
partial void DeleteSSAttendance(Grace.Models.SSAttendance instance);
示例11: InsertSSAttendance
partial void InsertSSAttendance(Grace.Models.SSAttendance instance);
示例12: UpdateService
partial void UpdateService(Grace.Models.Service instance);
示例13: DeletePastor
partial void DeletePastor(Grace.Models.Pastor instance);
示例14: UpdatePastor
partial void UpdatePastor(Grace.Models.Pastor instance);
示例15: InsertPastor
partial void InsertPastor(Grace.Models.Pastor instance);