Exemple #1
0
        public dynamic PostEmployee(EmployeeDetail employeeDetail, TestLeaveManagementContext _context)
        {
            try
            {
                var res = _context.Database.ExecuteSqlRaw("AddDetailEmployee {0} , {1} , {2} ,{3} , {4}", employeeDetail.EmpId, employeeDetail.EmpName, employeeDetail.EmpEmail, employeeDetail.EmpPhone, employeeDetail.EmpPass);


                return(res);
            }
            catch (Exception ex)
            {
                return(null);
            }
        }
Exemple #2
0
 public ApplyLeaveRepository(TestLeaveManagementContext context)
 {
     _context = context;
 }
        ////public HREmployeeAddRepository()
        ////{
        ////}

        public HRManagementController(TestLeaveManagementContext context)
        {
            _context = context;
        }
Exemple #4
0
 public TokenController(IConfiguration config, TestLeaveManagementContext context)
 {
     _config  = config;
     _context = context;
 }
 public ApplyLeavesController(TestLeaveManagementContext context)
 {
     _context = context;
 }
 public EmployeeManagementController(TestLeaveManagementContext context)
 {
     _context = context;
 }
Exemple #7
0
 public EmployeeRepository(TestLeaveManagementContext context)
 {
     this._context = context;
 }