private static MovieLanguageDO Save(MOV_M_Language input, int userID) { MovieLanguageDO inputDO = new MovieLanguageDO( ); ObjectMapper.MapObjects(input, inputDO, AuditInfo.Fields); return(Save(inputDO, userID)); }
public static MovieLanguageDO Save(MovieLanguageDO inputDO, int userID) { Repository <MOV_M_Language> rep = new Repository <MOV_M_Language> (MArchiveDataContextProvider.Instance); MOV_M_Language objectToAdd = null; objectToAdd = new MOV_M_Language( ); ObjectMapper.MapObjects(inputDO, objectToAdd, AuditInfo.Fields); rep.InsertOnSubmit(objectToAdd); rep.DCP.CommitChanges(userID); InvalidateCache(CacheAreaKey); ObjectMapper.MapObjects(objectToAdd, inputDO); return(inputDO); }