public ActionResult DeleteConfirmed(long id) { AisleFaceStorageTypesPost aislefacestoragetypes = _aislefacestoragetypesService.GetPost(id); aislefacestoragetypes.UserName = User.Identity.Name; _aislefacestoragetypesService.Delete(aislefacestoragetypes); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind("ixAisleFaceStorageType,sAisleFaceStorageType")] AisleFaceStorageTypesPost aislefacestoragetypes) { if (ModelState.IsValid) { aislefacestoragetypes.UserName = User.Identity.Name; _aislefacestoragetypesService.Edit(aislefacestoragetypes); return(RedirectToAction("Index")); } return(View(aislefacestoragetypes)); }
public ActionResult Edit(long id) { AisleFaceStorageTypesPost aislefacestoragetypes = _aislefacestoragetypesService.GetPost(id); if (aislefacestoragetypes == null) { return(NotFound()); } return(View(aislefacestoragetypes)); }
public Task Delete(AisleFaceStorageTypesPost aislefacestoragetypesPost) { // Additional validations // Pre-process // Process this._aislefacestoragetypesRepository.RegisterDelete(aislefacestoragetypesPost); try { this._aislefacestoragetypesRepository.Commit(); } catch (Exception ex) { this._aislefacestoragetypesRepository.Rollback(); // Log exception throw; } // Post-process return(Task.CompletedTask); }
public Task <Int64> Create(AisleFaceStorageTypesPost aislefacestoragetypesPost) { // Additional validations // Pre-process // Process this._aislefacestoragetypesRepository.RegisterCreate(aislefacestoragetypesPost); try { this._aislefacestoragetypesRepository.Commit(); } catch (Exception ex) { this._aislefacestoragetypesRepository.Rollback(); // Log exception throw; } // Post-process return(Task.FromResult(aislefacestoragetypesPost.ixAisleFaceStorageType)); }
public void RegisterDelete(AisleFaceStorageTypesPost aislefacestoragetypesPost) { _context.AisleFaceStorageTypesPost.Remove(aislefacestoragetypesPost); }
public void RegisterEdit(AisleFaceStorageTypesPost aislefacestoragetypesPost) { _context.Entry(aislefacestoragetypesPost).State = EntityState.Modified; }
public void RegisterCreate(AisleFaceStorageTypesPost aislefacestoragetypesPost) { _context.AisleFaceStorageTypesPost.Add(aislefacestoragetypesPost); }