Ejemplo n.º 1
0
 public bool SaveCountry(CountryUIDto dto)
 {
     try
     {
         var retVal = this.dal.SaveCountry(dto.Id, dto.Name);
         return(retVal);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Ejemplo n.º 2
0
        public static CountryUIDto ToUIDto(this DataAccess.Models.Country item)
        {
            CountryUIDto dto = null;

            if (item != null)
            {
                dto = new CountryUIDto {
                    Id = item.Id, Name = item.Name
                };
            }

            return(dto);
        }
Ejemplo n.º 3
0
 public bool SaveCountry(CountryUIDto dto)
 {
     return(new CountryLogic().SaveCountry(dto));
 }