public String LineCreate(string fkidx, opportunityline line)
        {
            opportunity header = db.opportunitys.Find(Convert.ToInt32(fkidx));

            line.opportunity = header;
            db.opportunitylines.Add(line);
            db.SaveChanges();
            return("");
        }
        public String LineDelete(string key)
        {
            if (ModelState.IsValid)
            {
                opportunityline data = db.opportunitylines.Find(Convert.ToInt32(key));
                db.opportunitylines.Remove(data);
                db.SaveChanges();
                return("");
            }

            return("");
        }
        public String LineEdit(string fkidx, opportunityline line)
        {
            if (ModelState.IsValid)
            {
                opportunity header = db.opportunitys.Find(Convert.ToInt32(fkidx));
                line.opportunity     = header;
                db.Entry(line).State = EntityState.Modified;
                db.SaveChanges();
                return("");
            }

            return("");
        }