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
     };
 }
Пример #2
0
 public void UpdateProviderEntity(ProviderEntity providerEntity, string name, string id)
 {
 }
Пример #3
0
 public static bool ModifyPartner(ProviderEntity partner)
 {
     return(PartnerProvider.Modify(partner));
 }
Пример #4
0
 public static bool DeletePartner(ProviderEntity partner)
 {
     return(PartnerProvider.Remove(partner));
 }
Пример #5
0
 public static bool NewPartner(ProviderEntity partner)
 {
     return(PartnerProvider.Add(partner));
 }
Пример #6
0
 public ActionResult SaveForm(string keyValue, ProviderEntity entity)
 {
     providerbll.SaveForm(keyValue, entity);
     return(Success("操作成功。"));
 }