public void UpdateAppVersion(tbl_AppVersion tblAppVersion) { try { IGenericDataRepository <tbl_AppVersion> repository = new GenericDataRepository <tbl_AppVersion>(); repository.Update(tblAppVersion); } catch (Exception) { throw; } }
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; } }
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; } }
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; } }