コード例 #1
0
        public IHttpActionResult addnewdriver(DriversDB dr)
        {
            PickMe2Entities nd = new PickMe2Entities();

            nd.CompanyAdd(dr.Driver_id, dr.Driver_name, dr.Driver_address, dr.Driver_Pan, dr.Driver_license, dr.Company_contact);
            nd.SaveChanges();
            return(Ok());
        }
コード例 #2
0
        public IHttpActionResult company(CompanyDB cdb)
        {
            PickMe2Entities pe = new PickMe2Entities();

            pe.CompanyInsert(cdb.Company_id, cdb.Company_name, cdb.Company_address, cdb.Company_vendor_name, cdb.Company_email, cdb.Company_contact);
            pe.SaveChanges();
            return(Ok());
        }