public void DataBind() { if (NeedLoad) { var seedService = Ace.AppCtx.HttpContext.RequestServices.GetService <ISeedService>(); var prefix = Prefix + (DateExp.HasValue() ? DateTime.Now.ToString(DateExp) : ""); Value = seedService.Create(Seed, prefix, length, AutoSave, Nary); } }
public Insurance() { Id = Guid.NewGuid(); DateExp = DateTime.Now; DueDate = DateExp.AddYears(1); Cost = 1000000; //Increase = GetIncrease(CustomerStore.GetCustomerById(CustomerId).Age, //CustomerStore.GetCustomerById(CustomerId).City, Year); //Cost = +Increase; }