// GET: LocationController/Delete/5 /// <summary> /// addition of the delete functions based on the name /// </summary> /// <param name="name"></param> /// <returns></returns> public ActionResult Delete(string name) { _partsBL.DeleteLocation(_partsBL.GetLocationByName(name)); return(RedirectToAction(nameof(Index))); }