public async Task <IActionResult> AddNewEmployee(string Email) { if (string.IsNullOrEmpty(Email)) { return(BadRequest()); } var res = await EmployeeRepo.AddNewEmployeeByEmail(Email); if (!res) { return(BadRequest()); } return(Ok()); //return CreatedAtRoute("GetEmployeeByEmail", new { email = Email }); }