public async Task <string> CreateEmployee([FromUri] string NIN, [FromUri] int type, [FromUri] int ParkID)
        {
            ParkRepo = new ParkRepository();

            UserRepo = new UserRepository();


            ParkRepo.CreateEmployee((await UserRepo.GetUser(NIN)).ID, type, ParkID);

            return("Employee Created Successfully");
        }
Example #2
0
 public void CreateEmployee([FromUri] int UserID, [FromUri] int ParkID)
 {
     ParkRepo = new ParkRepository();
     ParkRepo.CreateEmployee(UserID, ParkID);
 }