public static ProviderModel CreateFromEntity(ProviderEntity p) { return new ProviderModel { ProviderId = p.ProviderId, Address = new AddressModel { AddressLine1 = p.AddressLine1, AddressLine2 = p.AddressLine2, AddressLine3 = p.AddressLine3, City = p.City, StateOrProvince = p.StateOrProvince, Country = p.Country, ZipCode = p.ZipCode, }, ProviderStatus = p.ProviderStatus, GeoLatitude = p.GeoLatitude, GeoLongitude = p.GeoLongitude }; }
public void UpdateProviderEntity(ProviderEntity providerEntity, string name, string id) { }
public static bool ModifyPartner(ProviderEntity partner) { return(PartnerProvider.Modify(partner)); }
public static bool DeletePartner(ProviderEntity partner) { return(PartnerProvider.Remove(partner)); }
public static bool NewPartner(ProviderEntity partner) { return(PartnerProvider.Add(partner)); }
public ActionResult SaveForm(string keyValue, ProviderEntity entity) { providerbll.SaveForm(keyValue, entity); return(Success("操作成功。")); }