public async Task <ActionResult> DisplayCallLog(int id) { using (CallLogDataProvider dataProvider = new CallLogDataProvider()) { CallLogEntry data = await dataProvider.GetItemByIdentityAsync(id); if (data == null) { throw new Error(this.__ResStr("notFound", "Call Log Entry with id {0} not found"), id); } DisplayModel model = new DisplayModel(); model.SetData(data); return(View(model)); } }
public void SetData(CallLogEntry data) { ObjectSupport.CopyData(data, this); }
public BrowseItem(BrowseCallLogModule module, CallLogEntry data) { Module = module; ObjectSupport.CopyData(data, this); }