SHARE
TWEET

Untitled

a guest Jun 24th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public interface IEmployeeService
  2.     {
  3.         int CreateEmployee(CreateEmployeeDto data);
  4.         IEnumerable<EmployeeListDto> GetEmployeeList();
  5.  
  6.     }
  7.  public class EmployeeService : IEmployeeService
  8.     {
  9. }
  10.      
  11. [AbpMvcAuthorize]
  12.     public class EmployeeController : HRISControllerBase
  13.     {
  14.  
  15.  
  16.         private readonly IEmployeeService _employeeService;
  17.  
  18.         public EmployeeController(          
  19.             IEmployeeService employeeService
  20.            )
  21.         {
  22.  
  23.             _employeeService = employeeService;          
  24.         }
  25.  
  26.         public ActionResult Index()
  27.         {
  28.             return View();
  29.         }
  30. }
  31.      
  32. public void ConfigureServices(IServiceCollection services)
  33. {
  34.     services.AddTransient<IEmployeeService, EmployeeService>();
  35. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top