public PropertyQueryInfoViewModel(PropertyQueryInfo entity) { Id = entity.Id; WebServiceName = entity.WebServiceName; QueryId = entity.QueryId; OriginalTitle = entity.OriginalTitle; Title = entity.Title; Type = entity.Type; Period = entity.Period; }
public PropertyQueryInfo ToEntity(PropertyQueryInfo existing = null) { PropertyQueryInfo entity = (existing != null ? existing : new PropertyQueryInfo()); entity.Id = this.Id; entity.WebServiceName = this.WebServiceName; entity.QueryId = this.QueryId; entity.OriginalTitle = this.OriginalTitle; entity.Title = this.Title; entity.Type = this.Type; entity.Period = this.Period; return entity; }
public bool UpdatePropertyQueryInfo(PropertyQueryInfo propertyQuery) { try { _unitOfWork.PropertyQueryInfoRepository.Update(propertyQuery); _unitOfWork.Save(); return true; } catch { } return false; }
public PropertyQueryWithResults(PropertyQueryInfo query, List<PropertyQueryResult> results = null) { Query = query; Results = results ?? new List<PropertyQueryResult>(); }