private PTMEntities1 db = new PTMEntities1();
[HttpPost] public ActionResult Company(Company comp) { Guid companyId = new Guid(); comp.CompanyId = companyId; Guid createdBy =new Guid( "6B2FA75B-8A7F-4CF2-BBF7-9C5728308E0C"); comp.CreatedBy = createdBy; db.Companies.Add(comp); db.SaveChanges(); return View(comp); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)