public Customer_DetailsController(Icustomer _custdata) { _log4net = log4net.LogManager.GetLogger(typeof(Customer_DetailsController)); custdata = _custdata; //_con = con; }
public CustomerController(Icustomer cus) // here Constructor injection is happenning check with design principle (dip) { this.cus = cus; }
public int AddC(Icustomer obj) { lst.Add(obj); return(obj.Cid); }