Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public interface IEmployeeService
- {
- int CreateEmployee(CreateEmployeeDto data);
- IEnumerable<EmployeeListDto> GetEmployeeList();
- }
- public class EmployeeService : IEmployeeService
- {
- }
- [AbpMvcAuthorize]
- public class EmployeeController : HRISControllerBase
- {
- private readonly IEmployeeService _employeeService;
- public EmployeeController(
- IEmployeeService employeeService
- )
- {
- _employeeService = employeeService;
- }
- public ActionResult Index()
- {
- return View();
- }
- }
- public void ConfigureServices(IServiceCollection services)
- {
- services.AddTransient<IEmployeeService, EmployeeService>();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement