public virtual void RemoveProjectGrant(int Id) { foreach (ProGrant pr in ProGrants) { if (pr.Id == Id) { ProGrants.Remove(pr); } break; } }
public virtual IList <ProGrant> GetProjectGrantByProjectId(int ProjectId) { IList <ProGrant> Projects = new List <ProGrant>(); foreach (ProGrant pr in ProGrants) { if (pr.Project.Id == ProjectId) { ProGrants.Add(pr); } } return(Projects); }