public IHttpActionResult RemoveEmployee(int id) { var employees = _employeeInfo.DeleteEmployees(id); if (employees == null) { return(NotFound()); } return(Ok(employees)); }
public IActionResult DeleteData(int id) { _employeeservices.DeleteEmployees(id); return(Ok("Deleted successfully")); }