I am using below code calling API which is working fine. Now I don't want to call API instead just return a true value. When I return true throwing error
export interface EmployeeStatus{
hasActive: boolean;
}
public getStatus(Id: number): Observable<EmployeeStatus> {
return true;
//return this.http.get<EmployeeStatus>(`APIurl`);
}