public static JobAdListEntity Map(this JobAdList list) { var entity = new JobAdListEntity { id = list.Id }; list.MapTo(entity); return(entity); }
void IJobAdListsRepository.UpdateList(JobAdList list) { using (var dc = CreateContext()) { var entity = GetListEntity(dc, list.Id); if (entity != null) { list.MapTo(entity); dc.SubmitChanges(); } } }