public Task SaveShelterAttribute(ShelterAttribute attribute) { var context = PersistenceContextFactory.CreateFor <ShelterAttribute>(); return(Asyncer.Async(() => context.Save(attribute))); }
public Task SaveShelterAttribute(ShelterAttribute attribute) { return(Asyncer.Async(() => _shelterAttributes[attribute.ObjectId] = attribute)); }