Пример #1
0
 /// <summary>
 /// create new record
 /// </summary>
 /// <param name="dto"></param>
 /// <returns></returns>
 public bool Create(SiteSettingDto dto)
 {
     try
     {
         var entity = _repository.InsertOrUpdate(Mapper.Map <SiteSetting>(dto));
         return(entity == null ? false : true);
     }
     catch (Exception ex)
     {
         _log.LogError("SiteSettingAppService Create error occured:" + ex.Message);
         return(false);
     }
 }