public Task UpdateInstitute(DomainObjects.MoscowInstitute MInstitute) { var foundinstitute = GetInstitute(MInstitute.Id).Result; if (foundinstitute == null) { AddInstitute(MInstitute); } else { if (foundinstitute != MInstitute) { _MInstitutes.Remove(foundinstitute); _MInstitutes.Add(MInstitute); } } return(Task.CompletedTask); }
public Task RemoveInstitute(DomainObjects.MoscowInstitute MInstitute) { _MInstitutes.Remove(MInstitute); return(Task.CompletedTask); }
public Task AddInstitute(DomainObjects.MoscowInstitute MInstitute) { _MInstitutes.Add(MInstitute); return(Task.CompletedTask); }