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); } }
public ApplyLeaveRepository(TestLeaveManagementContext context) { _context = context; }
////public HREmployeeAddRepository() ////{ ////} public HRManagementController(TestLeaveManagementContext context) { _context = context; }
public TokenController(IConfiguration config, TestLeaveManagementContext context) { _config = config; _context = context; }
public ApplyLeavesController(TestLeaveManagementContext context) { _context = context; }
public EmployeeManagementController(TestLeaveManagementContext context) { _context = context; }
public EmployeeRepository(TestLeaveManagementContext context) { this._context = context; }