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.
        [Themed]
        public ActionResult Home()
        {            
            var shape = Services.ContentManager.Get<StaffPart>(0);
            return View((object)shape);
        }
@model Orchard.Staff.Models.StaffPart
<fieldset>
  <legend>Profiles</legend>
  <div class="editor-label">
    @Html.LabelFor(model => model.StaffID)
  </div>
  <div class="editor-field">
    @Html.DisplayFor(model => model.Record.StaffID)
  </div>
</fieldset>
Can please help?
Image