This project is read-only.

Q: How to get data and return as view.

Topics: Customizing Orchard, Writing modules
Feb 5, 2013 at 7:21 AM
I am writing a module on creating a profile for users.
It contains UserId, UserEName and UserCName.

Was trying to use controller that get from Orchard and pass to view. But failed.
        public ActionResult Home()
            var shape = Services.ContentManager.Get<StaffPart>(0);
            return View((object)shape);
@model Orchard.Staff.Models.StaffPart
  <div class="editor-label">
    @Html.LabelFor(model => model.StaffID)
  <div class="editor-field">
    @Html.DisplayFor(model => model.Record.StaffID)
Can please help?