예제 #1
0
 public void UpdateAppVersion(tbl_AppVersion tblAppVersion)
 {
     try
     {
         IGenericDataRepository <tbl_AppVersion> repository = new GenericDataRepository <tbl_AppVersion>();
         repository.Update(tblAppVersion);
     }
     catch (Exception)
     {
         throw;
     }
 }
예제 #2
0
 public tbl_AppVersion FindAppVersion(int?Id)
 {
     try
     {
         IGenericDataRepository <tbl_AppVersion> repository = new GenericDataRepository <tbl_AppVersion>();
         tbl_AppVersion appVersion = repository.GetSingle(c => c.Id == Id);
         return(appVersion);
     }
     catch (Exception)
     {
         throw;
     }
 }
예제 #3
0
        public void DeleteAppVersion(AppVersionViewModel appVersionViewModel)
        {
            try
            {
                tbl_AppVersion tblAppVersion = new tbl_AppVersion();
                tblAppVersion.Id          = appVersionViewModel.Id;
                tblAppVersion.EntityState = DA.DomainModel.EntityState.Deleted;

                AppVersionManager appversionManager = new AppVersionManager();
                appversionManager.DeleteAppVersion(tblAppVersion);
            }
            catch (Exception)
            {
                throw;
            }
        }
예제 #4
0
        public void AddAppVersion(AppVersionViewModel appVersionViewModel)
        {
            try
            {
                tbl_AppVersion tblAppVersion = new tbl_AppVersion();

                tblAppVersion.AppVersion  = appVersionViewModel.AppVersion;
                tblAppVersion.EntityState = DA.DomainModel.EntityState.Added;

                AppVersionManager appVersionManager = new AppVersionManager();
                appVersionManager.AddAppVersion(tblAppVersion);
            }
            catch (Exception)
            {
                throw;
            }
        }