public IHttpActionResult InsertempNew(newemp ne) { newemp Emplo = new newemp(); Emplo.Empname = ne.Empname; Emplo.Email = ne.Email; Emplo.Location = ne.Location; dc.newemps.InsertOnSubmit(Emplo); dc.SubmitChanges(); return(Ok()); }
public IHttpActionResult Insertemp(newemp ne) { dc.newemps.InsertOnSubmit(ne); dc.SubmitChanges(); return(Ok()); }