public void GetCurrentState(CasePostPart postpart) { CasePostAttribPart attri = postpart.Get <CasePostAttribPart>(); attri.CurrentPostState = _casePostStates.Table.Where(rec => rec.CasePostPart_id == postpart.Id) .OrderByDescending(rec => rec.CasePostStateUtc) .FirstOrDefault(); }
private static void SetModelProperties(BuildShapeContext context, CasePostPart CasePost) { context.Shape.Case = CasePost.CasePart; var casat = CasePost.Get <CasePostAttribPart>(); }