public static SettingDto FromModel(Setting item)
        {
            if (item == null)
                return null;

            return new SettingDto()
            {
                Name = item.Name,
                Value = item.Value
            };
        }
 public int Update(Setting item)
 {
     return con.Update(SettingDto.FromModel(item));
 }
 public int Insert(Setting item)
 {
     return con.Insert(SettingDto.FromModel(item), "OR REPLACE");
 }