在这里我要开发MVC应用程序,在这里它显示错误,但是这里没有任何重载方法,谁能告诉我错误。
方法“GetAllCustomersAndSuppliers”没有重载需要 1 个参数
[HttpPost]
public ActionResult AddUser(ICS.Models.UserModels.Customer_Supplier model1)
{
ICS.Business.ICSContoller.UsersController _uc = new ICS.Business.ICSContoller.UsersController();
Guid userGuid = (Guid)Membership.GetUser().ProviderUserKey;
_uc.GetAllCustomersAndSuppliers(new ICS.Data.Customer_Supplier
{
FirstName = model1.FirstName,
LastName = model1.LastName,
DateOfBirth = model1.DateOfBirth,
Email = model1.Email
});
return View(model1);
}
这是方法
public IList<Customer_Supplier> GetAllCustomersAndSuppliers()
{
return (from cs in context.Customer_Supplier
where cs.IsActive == true
select cs).ToList();
}