public void InsertCader(SKL_Cader cader) { if (cader == null) { throw new ArgumentNullException("cader"); } _caderRepository.Insert(cader); //event notification _eventPublisher.EntityInserted(cader); }
public void UpdateCader(SKL_Cader cader) { if (cader == null) { throw new ArgumentNullException("cader"); } _caderRepository.Update(cader); string key = string.Format(CADER_BY_ID_KEY, cader.Id); _cacheManager.Remove(key); //event notification _eventPublisher.EntityInserted(cader); }
public static SKL_Cader ToEntity(this SKL_CaderModel model, SKL_Cader destination) { return(model.MapTo(destination)); }
public static SKL_CaderModel ToModel(this SKL_Cader entity) { return(entity.MapTo <SKL_Cader, SKL_CaderModel>()); }