public string Insertdata(employee employee) { var cors = new EnableCorsAttribute("*", "*", "*"); MyWork.Models.NorthwindEntities enz = new MyWork.Models.NorthwindEntities(); enz.InsertCustomers(employee.CustomerID, employee.CompanyName, employee.ContactName, employee.ContactTitle, employee.Address, employee.City, employee.Region, employee.PostalCode, employee.Country, employee.Phone, employee.Fax); return("success"); }
public string Insertdata(string CustomerID, string CompanyName, string ContactName, string ContactTitle, string Address, string City, string Region, string PostalCode, string Country, string Phone, string Fax) { MyWork.Models.NorthwindEntities en = new MyWork.Models.NorthwindEntities(); en.InsertCustomers(CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax); return("success"); }