public void Insert(ActiveUp.Net.Common.DeltaExt.Folder folder) { using (FolderSQLDb dao = new FolderSQLDb()) { dao.Insert(folder); } }
public void Update(ActiveUp.Net.Common.DeltaExt.Folder folder) { using (FolderSQLDb dao = new FolderSQLDb()) { dao.Update(folder); } }
public Folder GetById(long id) { ActiveUp.Net.Common.DeltaExt.Folder folder = null; using (var dbcontext = new FAXPECContext()) { try { FOLDERS a = dbcontext.FOLDERS.Where(x => x.ID == id).FirstOrDefault(); folder = AutoMapperConfiguration.MapToFolder(a); } catch (Exception ex) { ManagedException mEx = new ManagedException(ex.Message, "FOL_ORA003", string.Empty, string.Empty, ex); ErrorLogInfo er = new ErrorLogInfo(mEx); log.Error(er); throw mEx; } return(folder); } }