public CommonController(ApplicationContext context, ISubDepartmentService subdeptservice, IDepartmentService deptservice, IUserService userservice, ICommomService commomservice) { _context = context; _subdeptservice = subdeptservice; _deptservice = deptservice; _userservice = userservice; _commonservice = commomservice; }
private ISubDepartmentService _subdeptservice; // fix the service public SubDepartmentsController(ApplicationContext context, ISubDepartmentService subdepartservice) { _context = context; _subdeptservice = subdepartservice; }
public SubDepartmentController(ISubDepartmentService subDepartmentService) { this._subDepartmentService = subDepartmentService; }