// GET: SpecificRobotsInRelations/Add
        public IActionResult Add(int specificrobots, string property, int id, string currentpath)
        {
            var relation = new SpecificRobotsInRelation();

            if (property.Equals("ContributingFields"))
            {
                relation = new SpecificRobotsInRelation {
                    Specificrobots = specificrobots, Contributingfields = id
                };
            }
            ;
            if (property.Equals("ModesOfLocomotion"))
            {
                relation = new SpecificRobotsInRelation {
                    Specificrobots = specificrobots, Modesoflocomotion = id
                };
            }
            ;
            if (property.Equals("RoboticsPrinciples"))
            {
                relation = new SpecificRobotsInRelation {
                    Specificrobots = specificrobots, Roboticsprinciples = id
                };
            }
            ;
            if (property.Equals("Business"))
            {
                relation = new SpecificRobotsInRelation {
                    Specificrobots = specificrobots, Business = id
                };
            }
            ;
            if (property.Equals("Branches"))
            {
                relation = new SpecificRobotsInRelation {
                    Specificrobots = specificrobots, Branches = id
                };
            }
            ;
            if (property.Equals("Types"))
            {
                relation = new SpecificRobotsInRelation {
                    Specificrobots = specificrobots, Types = id
                };
            }
            ;
            if (property.Equals("RobotComponentsAndDesignFeatures"))
            {
                relation = new SpecificRobotsInRelation {
                    Specificrobots = specificrobots, Robotcomponentsanddesignfeatures = id
                };
            }
            ;
            if (property.Equals("RoboticsDevelopmentAndDevelopmentTools"))
            {
                relation = new SpecificRobotsInRelation {
                    Specificrobots = specificrobots, Roboticsdevelopmentanddevelopmenttools = id
                };
            }
            ;
            if (property.Equals("RoboticsCompanies"))
            {
                relation = new SpecificRobotsInRelation {
                    Specificrobots = specificrobots, Roboticscompanies = id
                };
            }
            ;
            if (property.Equals("RoboticsOrganizations"))
            {
                relation = new SpecificRobotsInRelation {
                    Specificrobots = specificrobots, Roboticsorganizations = id
                };
            }
            ;
            if (property.Equals("RoboticsCompetitions"))
            {
                relation = new SpecificRobotsInRelation {
                    Specificrobots = specificrobots, Roboticscompetitions = id
                };
            }
            ;
            if (property.Equals("InfluentialPeople"))
            {
                relation = new SpecificRobotsInRelation {
                    Specificrobots = specificrobots, Influentialpeople = id
                };
            }
            ;
            if (property.Equals("DegreeOfMaturity"))
            {
                relation = new SpecificRobotsInRelation {
                    Specificrobots = specificrobots, Degreeofmaturity = id
                };
            }
            ;

            _context.Add(relation);
            _context.SaveChanges();

            String[] url = new String[4];
            url = currentpath.Split('/');
            return(RedirectToAction(url[3], url[2], new { specificrobots = specificrobots }));
        }