protected void Init(Attempt attempt) { attempt.Id = Id; attempt.CreatedAt = CreatedAt; attempt.Name = Name; attempt.LastName = LastName; attempt.Position = Position; attempt.Company = Company; attempt.Photo = Photo; attempt.PhoneNumber = PhoneNumber; attempt.EMail = EMail; attempt.Skype = Skype; attempt.StreetAddress = StreetAddress; attempt.City = City; attempt.State = State; attempt.Country = Country; attempt.ZipCode = ZipCode; attempt.Latitude = Latitude; attempt.Longitude = Longitude; attempt.AboutUs = AboutUs; }
public async Task UpdateAttemptAsync(Attempt customer) { for (int i = 0; i < _attempts.Count; i++) if (string.Equals(_attempts[i].Id, customer.Id)) { _attempts[i] = customer; return ; } }
public async Task RemoveAttemptAsync(Attempt attempt) { _attempts.Remove(attempt); }
public async Task AddAttemptAsync(Attempt customer) { if (_attempts.Find(attempt => attempt.Id == customer.Id) == null) _attempts.Add(customer); }
protected ReactiveAttempt() { _model = new Attempt(); }
protected new void InitViewModel(Attempt model) { var customer = model as Customer; if (customer != null) { IsClient = customer.IsClient; Key = customer.Key; } base.InitViewModel(model); }
protected new Customer InitModel(Attempt model) { var toReturn = model as Customer ?? new Customer(); base.InitModel(toReturn); toReturn.IsClient = IsClient; toReturn.Key = Key; return toReturn; }
protected Attempt InitModel(Attempt model) { model.CreatedAt = Date; model.Name = Name; model.LastName = LastName; model.Position = Position; model.Company = Company; model.Photo = Photo; model.PhoneNumber = PhoneNumber; model.EMail = EMail; model.Skype = Skype; model.StreetAddress = StreetAddress; model.City = City; model.State = State; model.Country = Country; model.ZipCode = ZipCode; model.Latitude = Latitude; model.Longitude = Longitude; model.AboutUs = AboutUs; return model; }
protected void InitViewModel(Attempt model) { Date = model.CreatedAt.GetValueOrDefault().DateTime; Name = model.Name; LastName = model.LastName; Position = model.Position; Company = model.Company; Photo = model.Photo; PhoneNumber = model.PhoneNumber; EMail = model.EMail; Skype = model.Skype; StreetAddress = model.StreetAddress; City = model.City; State = model.State; Country = model.Country; ZipCode = model.ZipCode; Latitude = model.Latitude; Longitude = model.Longitude; AboutUs = model.AboutUs; }
public Attempt Clone() { var toReturn = new Attempt(); Init(toReturn); return toReturn; }