public IActionResult Edit(int id, Behind Behind) { db.Entry(Behind).State = Microsoft.EntityFrameworkCore.EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); }
public IActionResult Add(Behind Behind) { db.Behind.Add(Behind); db.SaveChanges(); return(RedirectToAction("Index")); }
public IActionResult ArrowSeven(int id) { var str = db.AtRisk.Where(x => x.Id == id).ToList(); foreach (var val in str) // iterator the data from the list and insert them into the listSecond { string Status = "Behind"; Behind ls = new Behind(); ls.Id = val.Id; ls.Name = val.Name; ls.Status = Status; ls.Category = val.Category; ls.Owner = val.Owner; ls.Lead = val.Lead; ls.Budget = val.Budget; ls.Profit = val.Profit; db.Behind.Add(ls); } db.SaveChanges(); db.AtRisk.Remove(db.AtRisk.Find(id)); db.SaveChanges(); return(RedirectToAction("Index")); }
public IActionResult Add(Behind Behind, AltProject AltProject) { db.Behind.Add(Behind); db.AltProject.Add(AltProject); db.SaveChanges(); return(RedirectToAction("Index")); }
/// <summary> /// Return a text representation of this object. /// </summary> public override String ToString() { return(String.Format("Cube: Left={0}, Top={1}, Front={2}, Right={3}, Bottom={4}, Behind={5}", Left.ToString(), Top.ToString(), Front.ToString(), Right.ToString(), Bottom.ToString(), Behind.ToString())); }
public override int GetHashCode() { if (hashcode.HasValue) { return(hashcode.Value); } unchecked { hashcode = (int)2166136261; hashcode = hashcode * 1677619 + (LocalBranch?.GetHashCode() ?? 0); hashcode = hashcode * 1677619 + (RemoteBranch?.GetHashCode() ?? 0); hashcode = hashcode * 1677619 + Ahead.GetHashCode(); hashcode = hashcode * 1677619 + Behind.GetHashCode(); foreach (var entry in Entries) { hashcode = hashcode * 1677619 + entry.GetHashCode(); } return(hashcode.Value); } }
/// <summary> /// Return the HashCode of this object. /// </summary> /// <returns>The HashCode of this object.</returns> public override Int32 GetHashCode() { return(Left.GetHashCode() ^ 1 + Top.GetHashCode() ^ 2 + Front.GetHashCode() ^ 3 + Right.GetHashCode() ^ 4 + Bottom.GetHashCode() ^ 5 + Behind.GetHashCode()); }
public Door(int number, Behind behind) { Number = number; Behind = behind; }