public void Save(SocioEconomicStatusViewModel socioEconomicStatusViewModel)
 {
     SocioEconomicStatus socioEconomicStatus = new SocioEconomicStatus(socioEconomicStatusViewModel.Id)
     {
         EcoStatus = socioEconomicStatusViewModel.Status
     };
     _socioEconomicStatusViewModel.Save(socioEconomicStatus);
 }
 public SocioEconomicStatusViewModel Map(SocioEconomicStatus socioEconomicStatus)
 {
     return new SocioEconomicStatusViewModel
     {
         Id       = socioEconomicStatus.Id,
         Status   = socioEconomicStatus.EcoStatus,
         isActive = socioEconomicStatus._Status == EntityStatus.Active ? true : false
     };
 }
Ejemplo n.º 3
0
 public SocioEconomicStatusDTO Map(SocioEconomicStatus socioEconomicStatus)
 {
     if (socioEconomicStatus == null) return null;
     return Mapper.Map<SocioEconomicStatus, SocioEconomicStatusDTO>(socioEconomicStatus);
 }
Ejemplo n.º 4
0
 public static SocioEconomicStatus Map(this tblSocioEconomicStatus socioEconomicStatus)
 {
     SocioEconomicStatus ses = new SocioEconomicStatus(socioEconomicStatus.id)
     {
         //_Status = region.Active.Value,
         EcoStatus = socioEconomicStatus.Status
     };
     ses._SetDateCreated(socioEconomicStatus.IM_DateCreated);
     ses._SetDateLastUpdated(socioEconomicStatus.IM_DateLastUpdated);
     ses._SetStatus((EntityStatus)socioEconomicStatus.IM_Status);
     return ses;
 }