public IEnumerable <FeeModel> GetWorkItems() { var ids = Context.Service_Fee.Where(p => p.Service_Id == Id) .Select(p => p.Id); foreach (var id in ids) { var item = new FeeModel(ContextProvider); item.Load(id); yield return(item); } }
public void AddWorkItem(FeeModel item) { item.AssignTo(this); }